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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -