Hi,
I think I've found the problem.
I had javassist 3.17.1 (latest) in my project but hibernate 4.2 ships
with version 3.15.0
Now it seems to work!
Thank you, and sorry for misplacing my question here!
Regards,
Markus
Am 27.03.2013 17:23, schrieb Steve Higham:
On 27/03/2013 10:42, Markus Demetz wrote:
Hi,
I have situations, where the getId() method of my model class returns
null
when navigating through OGNL e.g. when
calling <s:property value="#user.gallery.id"/>.
Have you tried <s:property value="user.gallery.id"/> or <s:property
value="%{user.gallery.id}"/>
No luck :-(
I also tried with JSTL now without success.
It's very strange, since sometimes it works and then it reappears again.
I'll ask at the hibernate forum.
Regards,
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
I've seen this behavior on newly created instances. Hibernate doesn't
know the ID until the object is persisted to the DB. Hibernate tries
to delay this as long as possible to minimise DB writes. You would
have thought a request for the ID would force a DB write but Hibernate
doesn't seem to implement this behavior. If you want the ID you need
to force the DB write first.
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org