[esb-issues] [JBoss JIRA] Commented: (JBESB-722) Hibernate interceptor onLoad event reports empty object
Tom Cunningham (JIRA)
jira-events at lists.jboss.org
Wed Sep 12 00:24:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBESB-722?page=comments#action_12376324 ]
Tom Cunningham commented on JBESB-722:
--------------------------------------
What it is doing seems fine to me - the onLoad event happens before the object is initialized.
http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Interceptor.html#onLoad(java.lang.Object,%20java.io.Serializable,%20java.lang.Object[],%20java.lang.String[],%20org.hibernate.type.Type[])
In the case described, the user would want to do something like this :
<hibernate-provider name="Hibernateprovider"
hibernate-cfg-file="hibernate.cfg.xml">
<hibernate-bus busid="helloHibernateChannel" >
<hibernate-message-filter
classname="org.jboss.soa.esb.samples.quickstart.hibernateaction.Order"
event="onSave"/>
</hibernate-bus>
</hibernate-provider>
which catches the onSave event. onSave happens before the save and also contains the information on the entity being saved.
> Hibernate interceptor onLoad event reports empty object
> -------------------------------------------------------
>
> Key: JBESB-722
> URL: http://jira.jboss.com/jira/browse/JBESB-722
> Project: JBoss ESB
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Rosetta
> Affects Versions: 4.2 Milestone Release 3
> Reporter: Kevin Conner
> Assigned To: Tom Cunningham
> Fix For: 4.2.1 IR1
>
>
> The hibernate interceptor catches the preLoad event and uses the entity to create the message. Unfortunately, at this point, the entity is uninitialised with the exception of any primary keys.
> The entity state is located in the state/propertyNames/types arrays.
> We need to revisit this event to pass in meaningful information.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the esb-issues
mailing list