[Hibernate] How to model this using hibernate? (OR mapping quest)

2003-10-18 Thread Kenneth Foo
Hi..   A bit stumped here. My database structure is something like this...   1) There can be several domains in the system 2) Each user can be assigned to one or more domains 3) For each of these assigned domains, the user can have one or more assigned roles for the domain.   How do I effi

[Hibernate] GCJ & hibernate

2003-10-30 Thread Kenneth Foo
Hi   Has anyone tried natively GCJ-compiling an app using Hibernate before?   Curious whether it's doable, and how large is the performance hit... (especially with all thos reflection thingies going on)   Regards Kenneth

[Hibernate] How to convert to ?

2004-01-07 Thread Kenneth Foo
I have problem here of converting a collection into a more appropriate . I'd lilke to convert MemberBase.fields to a map of [field name --> MemberBaseField objects], such that I could do something like this easily... MemberBase mb = session.load() MemberBaseField field = (MemberBaseField)mb

[Hibernate] One table mapping to multiple objects?

2004-02-26 Thread Kenneth Foo
Hi..   Is it possible to map multiple objects to one table? I tried it and it gave me wrong objects! :-/   I have 1 table, which is modelled by 2 different objects. Reason for this is that the 2nd object hold large BLOB data, so I'd like to keep them separate for performance reasons.     My