Hi, 

for a new application, I plan to use use a layered architecture based one seam 
+ spring + hibernate. 

The spring example in Seam 2.0 shows how to use JpaTemplate to implement data 
access. I have a couple of questions:

1.) It is still possible to use classical Hibernate POJO + Mapping file, but I 
will not be able to use Hibernate metadata validation. Right?
2.) If I choose to use JPA, do I have to make the hibernate class EJB entity 
beans with @Entity? What is exactly the difference between Hibernate annotation 
and JPA (beside different configuration files) and EJB3 entity beans?
3.) What is the best way to handle PersistenceContext or HibernateSession? 
Configure and manage it in Seam? But how can I get them injected into my Spring 
DAOs without using Seam annotation?

Any feedback is appreciated.

Dapeng


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072585#4072585

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072585
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to