[hibernate-dev] hbm2doc with inner-classes

Mark Hobson markhobson at gmail.com
Tue Oct 24 10:42:29 EDT 2006

Hi there,

I'm looking at fixing hbm2doc to work with inner-classes and figure
the following changes to POJOClass are necessary as it stands:

- getShortName, getDeclarationName and getJavaTypeName need to return
X.Y for inner classes, not just Y

I'm not entirely sure of the distinction between getShortName and
getDeclarationName - the latter seems to account for meta attributes
whereas the former doesn't.  Also, changing getJavaTypeName requires
altering the behaviour of ImportContextImpl such that:

   ImportContextImpl.importType("a.b.X.Y") == "X.Y" (import a.b.X)

Obviously these changes will have repercussions in other areas of
hbm2x.  Any thoughts on how to minimise damage?


More information about the hibernate-dev mailing list