Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-31 Thread Mark Hobson
On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: ok, submit a patch and i can run the testsuite for it. I'll see if something stupid is broken in the ant junit testsuite. running it from eclipse creates no unknown failures on my side. Your hibernate.properties commit seems to have

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Max Rydahl Andersen
ok, submit a patch and i can run the testsuite for it. I'll see if something stupid is broken in the ant junit testsuite. running it from eclipse creates no unknown failures on my side. /max On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: These errors occur because the db still c

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Mark Hobson
On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: These errors occur because the db still contains some tables which should not be the case. This can be caused by interrupting the testsuite before it can clean up or a test that doesn't cleanup properly. Workaround: delete the db (easy

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Max Rydahl Andersen
Adding default_schema=PUBLIC fixes a few, and then using hibernate.connection.url=jdbc:hsqldb:. fixed some others. The majority of the remaining tests fail with: Expected were higher, Last: {TABLE_SCHEM=PUBLIC, REMARKS=null, TABLE_CAT=null, TABLE_NAME=Group, TABLE_TYPE=TABLE} expected:<0> but wa

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Mark Hobson
On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: ..and you have the default_schema set to PUBLIC ? This error should only occur if the database somehow is returning the same table name twice (e.g. reverse engineering multiple schemas) Adding default_schema=PUBLIC fixes a few, and th

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Max Rydahl Andersen
..and you have the default_schema set to PUBLIC ? This error should only occur if the database somehow is returning the same table name twice (e.g. reverse engineering multiple schemas) /max On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: What errors do you see ? Parts of the

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Mark Hobson
On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: which db are you running against ?! tools/etc/hibernate.properties is as per SVN, so hsqldb. Mark ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Max Rydahl Andersen
which db are you running against ?! /max On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: What errors do you see ? Parts of the testsuite runs best against HSQLDB with hibernate.default_schema set to PUBLIC. Many of the tests fail with: Testcase: testVersion took 0.344 sec

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Mark Hobson
On 30/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote: What errors do you see ? Parts of the testsuite runs best against HSQLDB with hibernate.default_schema set to PUBLIC. Many of the tests fail with: Testcase: testVersion took 0.344 sec Caused an ERROR Duplicate class name 'Bas

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Max Rydahl Andersen
On 24/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> 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

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-30 Thread Mark Hobson
On 24/10/06, Max Rydahl Andersen <[EMAIL PROTECTED]> 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

Re: [hibernate-dev] hbm2doc with inner-classes

2006-10-24 Thread Max Rydahl Andersen
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

[hibernate-dev] hbm2doc with inner-classes

2006-10-24 Thread Mark Hobson
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 g