Member Menu
 
 Monthly JBoss newsletter:
 
Hibernate Books
CaveatEmptor

hbm2java compability

meta attributes

The following meta attributes are implemented in hbm2java v3:

class-description, field-description, interface, implements, extends, generated-class, scope-class, scope-set, scope-get, scope-field, use-in-equals, property-type, class-code, extra-import.

The following meta attributes are not implemented. If you are dependent on these, then submit patches and/or create jira issues for them:

implement-equals were redundant. use "use-in-equals" to decide wether equals/hashcode will be implemented
bound NYI
constrained NYI
finder-method NYI - will prefer to implement proper DAO instead
session-method NYI - will prefer to implement proper DAO instead

Automatic generation of Base classes

This feature were available in hbm2java v2 by using a config.xml.

This is for technical reasons not yet possible in hbm2java v3, it will be.

Until then using meta attribute "generated-class" is recommended.


  NEW COMMENT

gen-property 19 Aug 2005, 10:01 atorres
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE
PAGE!gen-property is important. It's used with extends meta, when a class
extends a unmapped class that already implements the property method.
 
gen-property 18 Oct 2005, 10:36 max
gen-property is now implemented for H3 tools (will be in beta2)
 
use-in-tostring 23 Dec 2005, 08:50 max
use-in-tostring has been there for a while.
 
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]