This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
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: 72
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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62123
    
  68

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: How do frameworks work with pojo