Definitely, that’s the way I am doing it to. (I’m using hibernate in my project too).

 


Von: Nebinger, David [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 3. November 2006 22:14
An: MyFaces Discussion
Betreff: RE: Best practices to add MyFaces to an existing Hibernate project

 

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:[EMAIL PROTECTED]
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

Reply via email to