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
Post a Comment