The moose likes Object Relational Mapping and the fly likes Interface Mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Interface Mapping" Watch "Interface Mapping" New topic
Author

Interface Mapping

saranga rao
Ranch Hand

Joined: Apr 24, 2007
Posts: 49
Hi,

Is any body can help me:

i would like to know whether it is possible to hiberante mapping file of type interface....

or

for interface is it possible to create an hibernate mapping file


Regards
saranga
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Yes.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
saranga rao
Ranch Hand

Joined: Apr 24, 2007
Posts: 49
Can You give some examples

please not Without ProxyInteceptor


regards
saranga
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can't be done saranga rao. You need something to interupt the normal flow of application logic in Hibernate to generate a concrete implementation of your interface, otherwise Hibernate will just fall over, since there is not POJO for it to use.
[ May 14, 2007: Message edited by: Paul Sturrock ]
 
 
subject: Interface Mapping
 
Threads others viewed
How to access Stored Procedure
Trouble in using joins in hibernate
Difference between DAO and hibernateDAO file?
How can I use JSF inside a Servlet?
Unmapped table properties
developer file tools