Hi,
I am designing persistent layer for one of Poc, and I have the following architecture in place.
JSP is used as rendering/presentation (Here I will have Value Object), and control goes to servlet where I am Invoking EJB method calls. so the entire Value object will be passed to ejb layer. Now during the insertions into the database using hibernate, can I use the same value object to insert into the database or do I need to create separate POJO (infact they are value objects only) and have a wrapper for value object to convert it to POJO. So that I will be differentiating value objects and object (data) model. Suggest me some principles here..
Thanks in advance.
Regards
Nagesh G
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: