:: >so i've spent some time with Hibernate metadata, but i 
:: can't extract 
:: >all information. for example property length...
:: >  
:: >
:: Property length is a short cut to column.getLength(), it is 
:: used when 
:: property have only one column. So get property column(s) to 
:: get length.

hmm... i've been thinking in a different metamodel, but it's obvious now
that Hibernate needs the one it has to implement composite elements and
such.

:: >:: ::
:: >:: :: i've tried to get all classes from the SessionFactory, 
:: >:: :: create a new Configuration and add all classes to it. the 
:: >:: :: problem lies in subclasses in different .hbm.xml's: the 
:: >:: :: superclass must be added before it's children... 
:: >  
:: >
:: What do you mean by that? If you get session factory and 
:: metadata, there 
:: is no more relation with hbm files, AFAIK.

i've tried to re-create the Configuration from the classes returned by
the SessionFactory.

since then i've realized that i've rushed with the questions too much. i
need to understand and map the more complex Hibernate metamodel to my
simpler one.

the hibernate metamodel is not too intuitional for me. seems like to me
that the nifty details of o/r mapping influenced it too much. but it
depends on the point of view, because the current Hibernate metamodel
probably fits o/r mapping best. it just gives me some trouble to build
my own model that drives the UI.

thanks for all the info,

- 101

ui: i've attached a quick screenshot of what i'm working on. it displays
any hibernate mapping, with links, editing, etc... (30% done)

<<attachment: metaui.PNG>>

Reply via email to