Provide viable path for avoid anemic domain models.
---------------------------------------------------
Key: HHH-2173
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2173
Project: Hibernate3
Type: Task
Components: core
Versions: 3.2.1
Reporter: Jara Cesnek
Provide viable path for avoid anemic domain models.
1) Hibernate pojo's must be allowed to contain complex bussiness logic in their set or
get methods possible use current session. Find and update other hibernate pojo beans.
(see
http://www.hibernate.org/116.html#A26 "Also, make sure that a call to an
accessor method couldn't do anything wierd ... like initialize a lazy collection or
proxy.")
2) Allow complex validations of current graph of object. In Interceptor.preFlush or
completely another method.
(see
http://www.hibernate.org/156.html - this method is unusable in spring+JTA environment
where postFlush changes are not flushed in same transaction)
Next explanation and examples in :
http://forum.hibernate.org/viewtopic.php?t=965552
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira