[Hibernate] Support for Axion (http://axion.tigris.org)

2003-10-18 Thread Sandeep Dath
Title: Message Gavin/Christian,   Axion is "a small, fast, open source relational database system (RDBMS) supporting SQL and JDBC written in and for the Java programming language." and is hosted at http://axion.tigris.org." Its open source and Uses an Apache-style license. You can find a list

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

2003-10-18 Thread Sandeep Dath
Title: Message It all depends on what you are trying to do. Meaning, first figure out what kind traversals you will need to do and then things will become clearer.   One way of mapping things could be:   class Role {//..} class Domain {//..} class User{     private Set domainRoles;     //..

Re: [Hibernate] Saving Collections from Multiple Sessions

2003-10-18 Thread Gavin King
You need to upgrade to Hibernate 2.1, and understand the select-before-update mapping attribute. Urberg, John wrote: Hibernate also seems to always assume objects from different sessions are dirty. (I'm using saveOrUpdate() in 1.2.5. Maybe this has changed in 2.*?) Anyway, I need to work aroun

[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

Re: [Hibernate] Oracle mapping problem. (object.relation.size < X)

2003-10-18 Thread Gavin King
"from A where b.size<3" is not valid HQL! Do you mean: from A b where b.size<3 What exactly are you trying to point out here? * there is a missing space b/w "b1" and "where"?? * the order of the comparison is reversed? If the latter, just write: from A b where 3 > b.size If the former, plea

Re: [Hibernate] Oracle mapping problem. (object.relation.size < X)

2003-10-18 Thread Gavin King
"from A where b.size<3" is not valid HQL! Do you mean: from A b where b.size<3 What exactly are you trying to point out here? * there is a missing space b/w "b1" and "where"?? * the order of the comparison is reversed? If the latter, just write: from A b where 3 > b.size If the former, plea

[Hibernate] Oracle mapping problem. (object.relation.size < X)

2003-10-18 Thread Dmitry Olyenyov
Hi, guys! Suppose we have two tables: create table A (id number, name varchar2(10)); create table B ( id number, a_id number, xxx varchar2(11)); When I execute following "find" query it generates incorrect select: sesstion.find("from A where b.size < 3"); it generates select like this: select

Re: [Hibernate] Problem with order by - SQL

2003-10-18 Thread David Morris
IBM added support for that syntax with V5R2. You could also intercept the order by clause where it is built or where it is used and strip out the table. That change shouldn't take too long. David Morris >>> <[EMAIL PROTECTED]> 10/17/2003 1:15:45 PM >>> Hello hibernate boys, I'm new with hibern

[Hibernate] maven & schemaupdate

2003-10-18 Thread khote
No matter how I tweak it I can't get the maven hibernate:schema-export to work. I run SchemaExport from within my code and it works just fine. Is there some special jar I'm not thinking of that it needs? Some special "understood" setting that I'm missing? ---