AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.



java-hibernate: How to create and call the views using hibernate?

Could you plz explain the concept by taking sample code.

java x 210
hibernate x 23
Posted On : 2016-09-11 08:27:14.0
profile MOHAMMAD SALEEM BASHA - anyforum.in MOHAMMAD SALEEM BASHA
266150
up-rate
5
down-rate

Answers


Hibernate can treat views like it does any table. Just define an entity class based on that view. So you need to create a Java Class with the same fields as the persistent class or make one subclass of it?

An alternative to using a view is to use Hibernate Filters, which do much the same thing, but at the Hibernate session level.
for more information visit here: Hibernate Filters- Click Here

Posted On : 2016-09-13 00:31:14
Satisfied : 0 Yes  0 No
profile Rishi Kumar - anyforum.in Rishi Kumar
523188221600
Reply This Thread
up-rate
0
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in