[hibernate-dev] hbmlint has been born

Max Rydahl Andersen max.andersen at jboss.com
Thu Oct 12 13:30:19 EDT 2006


http://opensource.atlassian.com/projects/hibernate/browse/HBX-95

<hibernatetool>
   <...configuration/>
   <hbmlint/>
</hibernatetool>

hbmlint-result.txt:

CACHE_COLLECTION_NONCACHABLE_TARGET:Entity  
'org.hibernate.tool.hbmlint.Category' is referenced from the cache-enabled  
collection 'org.hibernate.tool.hbmlint.Category.childCategories' without  
the entity being cachable

LAZY_NOT_INSTRUMENTED:'org.hibernate.tool.hbmlint.BrokenNonLazy' has  
lazy='false', but its class 'org.hibernate.tool.hbmlint.BrokenNonLazy' has  
not been instrumented with cglib

LAZY_NO_DEFAULT_CONSTRUCTOR:lazy='true' set for  
'org.hibernate.tool.hbmlint.BrokenLazy', but class has no default  
constructor.

ID_SHADOWED:org.hibernate.tool.hbmlint.IdentifierProblem has a normal  
property named 'id'. This can cause issues since HQL queries will always  
interpret 'id' as the identifier and not the concrete property

SCHEMA_TABLE_MISSING:Missing table BrokenLazy
SCHEMA_TABLE_MISSING:Missing table BrokenNonLazy
SCHEMA_TABLE_MISSING:Missing table Category
SCHEMA_TABLE_MISSING:Missing table FakeNonLazy
SCHEMA_TABLE_MISSING:Missing table IdentifierProblem
SCHEMA_TABLE_MISSING:Missing table NoTable
SCHEMA_COLUMN_TYPE_MISMATCH:BadType has a wrong column type for name,  
expected: CLOB but was VARCHAR in db
SCHEMA_COLUMN_MISSING:Category is missing column: name
SCHEMA_TABLE_MISSING:Missing table MissingTable
MISSING_ID_GENERATOR:Missing sequence or table: hibernate_unique_key

This is the first cut so the output is just a raw dump of the issues found  
- should be beefed up and with links to an explanation of the problem  
found instead of repeating it always etc.


-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
max at hibernate.org
http://hibernate.org

JBoss a division of Red Hat
max.andersen at jboss.com




More information about the hibernate-dev mailing list