Hoylman, Bruce
2006-12-02 01:05:02 UTC
Hello --
Hibernate supports version attributes for automatically versioning
persistent objects. Is there a way to get Middlegen to correctly
generate this attribute in the mapping files it generates from a prefs
file? Simply creating the column on the underlying table is
insufficient as Hibernate requires this attribute to specify some
additional configuration information in support of its specialized
versioning role.
Note that I am dynamically generating the Hibernate mapping files, i.e.
I am relying on Middlegen to interrogate the database and generate the
mapping files on demand rather than manually maintaining the Hibernate
mapping files. Thus I want to be able to generate a properly configured
version attribute via Middlegen.
Any suggestions would be appreciated.
Peace.
Hibernate supports version attributes for automatically versioning
persistent objects. Is there a way to get Middlegen to correctly
generate this attribute in the mapping files it generates from a prefs
file? Simply creating the column on the underlying table is
insufficient as Hibernate requires this attribute to specify some
additional configuration information in support of its specialized
versioning role.
Note that I am dynamically generating the Hibernate mapping files, i.e.
I am relying on Middlegen to interrogate the database and generate the
mapping files on demand rather than manually maintaining the Hibernate
mapping files. Thus I want to be able to generate a properly configured
version attribute via Middlegen.
Any suggestions would be appreciated.
Peace.