File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How do frameworks work with pojo Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "How do frameworks work with pojo" Watch "How do frameworks work with pojo" New topic
Author

How do frameworks work with pojo

Peter Hsu
Ranch Hand

Joined: Aug 25, 2006
Posts: 53
Hi all:

How does a framework such as Hibernate work with POJO objects? I have always assumed it is reflection, but often have doubt about my assumption because of the performance implications. Recently I came across a blog saying NHibernate require it's POCO's properties be all virtual. It seems like some overriding are being done. This got me very curious.

I searched online but couldn't find what I am looking for. I can only find articles telling me how to use dependency injection on POJOs and how it makes life wonderful. I already know that.

Can someone suggest some reading materials where I can find my answers? How do they really manipulate/interact with objects without common interfaces?
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

I would imagine that looking through the source code would be your best bet.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: How do frameworks work with pojo
 
Threads others viewed
Singleton Deployment?
How do you update a collection if some exist and some are new?
Welcome Chris Richardson
RestFul API - links/hrefs to composite objects
Genric CSV generator with field names in Prop/Map
IntelliJ Java IDE