[hibernate-dev] hbm2doc with inner-classes

Max Rydahl Andersen max.andersen at jboss.com
Tue Oct 24 14:45:55 EDT 2006


> 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

ok; not sure if the classes know if they are inner classes.

> 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)

Again, how do you know wether a name is a class or an inner class?



-- 
--
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