[hibernate-dev] hbm2doc with inner-classes

Max Rydahl Andersen max.andersen at jboss.com
Mon Oct 30 09:19:47 EST 2006


> On 24/10/06, Max Rydahl Andersen <max.andersen at jboss.com> wrote:
>> > 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?
>
> Looking at the uses of ImportContext, the FQCN being passed into
> importType is of the form that is return by Class.getName.  For
> inner-classes, this uses the dollar syntax, e.g. "a.b.X$Y".  If this
> is definitely the case, then we can change ImportContextImpl to
> support inner-classes as described above.

maybe...need to run the testsuite to see if something blows because of  
that change.

> I'm happy to patch this, but was curious about any knock-on effects.
> I've tried running the tools tests but get a heap of errors - is there
> any special configuration I'm unaware of for them to pass?

What errors do you see ?

Parts of the testsuite runs best against HSQLDB with  
hibernate.default_schema set to PUBLIC.

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