many to one - Hibernate OneToMany subquery fails -


i have 1 many relation between 2 tables. here many side of it:

@entity @table(name = "t_global_users_authorization") public class tglobalusersauthorization{   ....   @manytoone(fetch = fetchtype.lazy)   @joincolumn(name = "user_id", nullable = false)   public tuserprofile getuserprofile() {     return userprofile;   } } 

when fetch 1 side entity following exception: "caused by: java.sql.sqlexception: ora-00904: "globalauth0_"."userprofile": invalid identifier" looks hibernate sees 1 side entity userprofile column in table t_global_users_authorization.

the 1 side entity follows:

@entity @table(name = "t_user_profile" ) public class tuserprofile implements serializable { ...  @onetomany(targetentity = tglobalusersauthorization.class, fetch = fetchtype.eager, mappedby = "userprofile") @cascade({ cascadetype.all}) private set<tglobalusersauthorization> globalauthorizations; 

what missing?

thank you.

kirill.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -