Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to introduce Hibernate into existing project  RSS feed

 
vaidehi agate
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is one query regarding Hibernate
One question was asked to me during interview:
There is one existing project in which ejb as a business tier and oracle as a backend used.No matter what is used at frontend.
One need to introduce hibernate in this project.
What all new things need to configure and what should change in existing architeture.
Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hard to say exactly - I'm assuming the interviewer was interested in your thought process rather than a tick list of things to change. I'd probably answer this by asking questions about how the old application designed? If the application already uses a data access pattern then dropping Hibernate into it is fairly easy. Presumably being an EJB project there would be DTOs or similar objects that could be annotated as is. If you've got CMT you can consider transaction scoped sessions. They might want you to talk about how you would configure and access your SessionFactory etc.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!