Did you add the new class in hibernate xml file?

[EMAIL PROTECTED] wrote:
I'm trying to implement the AuditInfo pattern for Hibernate
  http://www.hibernate.org/48.html
But its not working. It's very similar to the way that the Address object is
embedded in User, but I want to embed it in BaseObject so that all objects
have these fields.

I've:
- annotated the AuditInfo object as Embeddable.
- implemented the Auditable interface in BaseObject
- annotated the BaseObject class property getAuditInfo as Embedded

But when I regenerate the persistence layer the AuditInfo fields do not
appear.

I can provide the source, but wanted to see if there's a well-known trick
I'm missing on this.

Thanks in advance.


--
Leo Barrientos C.
Responsable de operaciones - OpenSistemas Madrid.
www.opensistemas.com
Madrid: 902 10 73 96
Móvil: 662319448
España.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to