title: Mapping SQL View to JPA Entity
body: <p>In my development project, I am using JPA (hibernate) as OR Mapping technology for database access. I sometimes hit performance issues and technical difficulties when I map DB table to entities directly for complex relationship. </p>
  
  <p>I find a workaround is to map DB view to JPA entities. This make coding easier and sometimes performance is better. Do you think it is a anti-pattern of using JPA in this way?</p>