myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nebinger, David" <dnebin...@tbbgl.com>
Subject RE: Best practices to add MyFaces to an existing Hibernate project
Date Fri, 03 Nov 2006 21:14:09 GMT
The easiest method would be simply to expose a getter method on your backing bean that returns
the hibernate pojo.
 
Through EL, you can then do #{backingbean.pojo.field} w/o having to replicate your various
getters/setters or include the pojo as a direct backing bean.

-----Original Message-----
From: Mick Knutson [mailto:mickknutson@gmail.com]
Sent: Friday, November 03, 2006 4:01 PM
To: MyFaces Discussion
Subject: Best practices to add MyFaces to an existing Hibernate project


I have an existing Hibernate project with many hibernate mapped POJO's.

I do not want to add all the set/get methods from my POJO into Backing Beans, so I am wondering
what others have done?

Have your BackingBean extend you hibernate object? 

-- 

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson 


Mime
View raw message