Tim Holloway wrote:Well, one of the big advantages of JPA over raw SQL/JDBC is that you don't code JOIN statement in JPQL.
JPA is based on Entity classes, so if you define informativos as having a relation such as @OneToMany to informativos_usuarios, then a simple
is all the JPQL you need. Depending on whether you've defined the relation as LAZY_FETCH or EAGER_FETCH, the informativos_usuario(s) linked to the informativo in question will be immediately fetched as well.
Hi, Thanks for the reply.
I understand however, I need to get a list of informativos ,"i", if i contains user u;