java - Mapping an Interface As A Primary Key Via Hibernate -


i have class it's own @embeddable id class, let's call icompanyid. there 2+ classes implement icompanyid. classes implement icompanyid embedded id's classes implement icompany (which there 2+ implementing classes).

so, this:

@embeddedid public icompanyid getid() { /* blah blah */ } 

how tell hibernate implementing class use? @manytoone or @onetomany, have specify value in targetentity, @embeddedid offers no such options. can help?

jason

have tried @target(companyidimpl.class) (see: @target)? keep in mind hibernate-specific solution.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -