Re: [bug / rc6]

2004-04-07 Thread Rémi Bars
Hi , i m trying the rc6 released and i dont understant a bug in my repositery i have something like field-descriptor name=_Fichier::_Fabricant column=fabricant jdbc-type=VARCHAR/ where _Fichier is an interface (which is instantiate in my constructor) , this interface dont have setter and getter

Re: [bug / rc6]

2004-04-07 Thread Rémi Bars
] To: OJB Users List [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 11:57 AM Subject: Re: [bug / rc6] On Wed, 7 Apr 2004, [iso-8859-1] Rémi Bars wrote: Hi , i m trying the rc6 released and i dont understant a bug in my repositery i have something like field-descriptor name

Re: [bug / rc6]

2004-04-07 Thread Rémi Bars
I have change my file (take the rc5 version of AbstractPersistentField ) and it works fine. I see your code and the new exception in the getFieldRecursive method : if ((c == Object.class) || (c.getSuperclass() == null) || c.isInterface()) { throw e;} I need update my code to make it more robust

OQLQuery

2004-02-25 Thread Rémi Bars
i all i create a oqlQuery like this OQLQuery query = odmg.newOQLQuery(); // 2. set the OQL select statement query.create(select * from table where id=null) when i try this i got this message : line 1:120: unexpected token: null what is wrong? Thank remi

Re: OQLQuery

2004-02-25 Thread Rémi Bars
when i put (select * from table where id is null) i got this message : line 1:107: unexpected token: id Remi - Original Message - From: Rémi Bars [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 11:44 AM Subject: OQLQuery i all i create

Re: Progress ?

2004-02-23 Thread Rémi Bars
hi all, i have to do a request on non persistent field, how can i do that? where can i find some info? a query like standart SQL (select table.att1, table.att2, table2.att from table, table1 where table.att10 etc) thanks for ur help Remi - Original Message - From: eric barbe

bug in store collection?

2004-02-16 Thread Rémi Bars
hi all, i get this exception when i try to store a collection with a new object... the metadata description class-descriptor class='OrdreServeur' table='ordre' field-descriptor name=_Numero column=no_ordre

Re: Bug in doDelete with the markedForDelete list

2004-02-13 Thread Rémi Bars
Hi when i try to store or retrieve array of object i get this exception (rc5) java.lang.ClassCastException at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeCollections(PersistenceBrokerImpl.java) i have change the code and it seems to work but is it correct to do that : in

Re: Identity

2004-02-10 Thread Rémi Bars
sorry it works fine now i have found a old code in my ojb Remi - Original Message - From: Rémi Bars [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 10:41 AM Subject: Re: Identity Hello i have a bug on rc5, i got the same in rc4 (see beelow

Re: Identity

2004-02-10 Thread Rémi Bars
into the same problems in an clustered environment with a distributed lock management (same temp values on different cluster nodes), but this will be another story... ;-) regards, Armin Rémi Bars wrote: Think the problem is the lock of the objects before insert. SequenceManagerNativeImpl returns

Re: Identity

2003-11-27 Thread Rémi Bars
Armin Rémi Bars wrote: Hi all, i m trying to use identity on sybase with the odmg api. I don t understand why only one object is insert in my table, when i try to add a second object i get no error but no record too. have u an idea? thanks for ur help! here is my

Re: Identity

2003-11-27 Thread Rémi Bars
to override public String getLastInsertIdentityQuery(String tableName) { // return the sql string to query last inserted Identity value } regards, Armin Rémi Bars wrote: hi, i have done the change and all my records are in the database. But now i get this error : what

Re: Identity

2003-11-27 Thread Rémi Bars
class have to override public String getLastInsertIdentityQuery(String tableName) { // return the sql string to query last inserted Identity value } regards, Armin Rémi Bars wrote: hi, i have done the change and all my records are in the database. But now i get this error

Re: Identity

2003-11-27 Thread Rémi Bars
: org.odmg.LockNotGrantedException: Can not lock [EMAIL PROTECTED] for WRITE at org.apache.ojb.odmg.TransactionImpl.lock(TransactionImpl.java:279) what does it means? (sometimes it works.when i m a on debugger) remi - Original Message - From: Rémi Bars [EMAIL PROTECTED] To: OJB

Re: Identity

2003-11-27 Thread Rémi Bars
. HTH regards, Armin Rémi Bars wrote: hi, i have try to put this in my code public String getLastInsertIdentityQuery(String tableName) { return select @@identity; (i need wait for an upgrade on sybase and test select last_insert_id() ) } it works fine

Re: Queries for M:N collections?

2003-10-28 Thread Rémi Bars
Hi all, i found my bug ! it is in my p6spy library (a bug in the log module, this bug is referenced in bugzilla) Remi - Original Message - From: Rémi Bars [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 27, 2003 5:10 PM Subject: Queries for M:N collections? Hi all, i

Queries for M:N collections?

2003-10-27 Thread Rémi Bars
Hi all, i m trying to store an object A wich have a list of A element, when i try that it works first time and after i got this exception org.apache.ojb.broker.PersistenceBrokerException: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at

1:1-Mapping

2003-09-30 Thread Rémi Bars
Hi all i m trying to do a 1:1 mapping on rc4 with the xml file at the end when i try to store a Catalogue i get this error : Thanks for ur help org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.PersistenceBrokerException:

Re: 1:1-Mapping

2003-09-30 Thread Rémi Bars
Message - From: Rémi Bars [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 9:25 AM Subject: 1:1-Mapping Hi all i m trying to do a 1:1 mapping on rc4 with the xml file at the end when i try to store a Catalogue i get this error : Thanks

Re: Antwort: 1:1-Mapping

2003-09-30 Thread Rémi Bars
. The name of your field-descriptor must correspond to an Integer property of your class. The name of the reference descriptor must correspond to an Object (ThemeSurveurImpl) property of your class. HTH Gerhard Rémi Bars [EMAIL PROTECTED] 30.09.2003 15:25 Bitte antworten an OJB Users List