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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
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: 71
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: 56191
    
  13

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]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How do frameworks work with pojo
 
Similar Threads
Singleton Deployment?
Genric CSV generator with field names in Prop/Map
Welcome Chris Richardson
How do you update a collection if some exist and some are new?
RestFul API - links/hrefs to composite objects