On 6/29/06, stephan opitz <[EMAIL PROTECTED]> wrote:

hello...

does exist any kind of good example which include in the controller
component hibernate with normal pojos or maybe already ejb 3.0???


I am almost through with a Shale+EJB3 (well, actually its Shale+JPA)
example.  It's the good ol' Struts MailReader application, recast to use the
new Java Persistence Architecture for talkng to the database.  One nice
thing about it (courtesy of Java EE 5) is you get dependency injection of
things like the entity managers into your managed beans (including the view
controllers behind each page).  This will get included (eventually) as a
formal Shale example later on.

An application that used Hibernate for persistence woud be virtually
identical in overall structure ... the concepts behind Hibernate and JPA are
pretty similar for this kind of usage, although many of the details
definitely differ.

stephan


Craig

Reply via email to