Re: PB behavor of Collection item delete ?

2006-03-09 Thread ABOU LINA
thank first, PersistenceBroker *delete elements* from the database that have been removed from the collection only if i do this : for example : A 1:n B 1. i get A from database using OJB Broker. 2. i delete one element B from A : A.getBCollection().remove(o); in this case yes the PB delete the

Problem with collection using ODMG API

2006-03-09 Thread Eric Kelm
Hi all- I am having a problem with 1:n collection in OJB using ODMG. Say I have a parent object, lets call it Trouble Ticket T with a collection of Ticket Notes N. Lets say that the objects retrieved in list N are n1, n2, n3. I perform a retrieval from the DB on Object T. Now I have T with a

Re: PB behavor of Collection item delete ?

2006-03-09 Thread Armin Waibel
Hi, ABOU LINA wrote: thank first, PersistenceBroker *delete elements* from the database that have been removed from the collection only if i do this : for example : A 1:n B 1. i get A from database using OJB Broker. 2. i delete one element B from A : A.getBCollection().remove(o); in this case

Re: PB behavor of Collection item delete ?

2006-03-09 Thread ABOU LINA
Hi, ok so, i made DAO implementation with OJB PB in a critical project and we are in step of delivring some module of the application (the mainly module now are developped and tested). my question is : 1. what will be the cost of migrating from PB to ODMG. ??? 2. there are some tools making

Re: remove all references.

2006-03-09 Thread Armin Waibel
Hi Vagula, Vagula wrote: Hi All, I have a table A which references tables B C. The auto-retrieve of B C has been set to true. While I retrieve a record from table A can I some how stop the auto-retrieval of B C. Currently it's *not* possible to

Re: Problem with collection using ODMG API

2006-03-09 Thread Armin Waibel
Hi Eric, Eric Kelm wrote: Hi all- I am having a problem with 1:n collection in OJB using ODMG. Say I have a parent object, lets call it Trouble Ticket T with a collection of Ticket Notes N. Lets say that the objects retrieved in list N are n1, n2, n3. I perform a retrieval from the DB on

Change od Schema during Runtime

2006-03-09 Thread Guido Beutler
Hello, I would like to copy complex objects from schema A to schema B. This would run in a managed environment (JBoss EJB Server) The schema is configured at the XML Mapping, can I change this during runtime like 1) read data from schema A 2) change schema 3) store the same objects to schema B

Re: Misc questions

2006-03-09 Thread Jean-Yves Sironneau
I forgot to tell that to raise this issue i have to clear the persistencer cache, otherwise everything seem's to be ok. 2006/3/7, Jean-Yves Sironneau [EMAIL PROTECTED]: Hello, I looked more precisely at my issue regarding foreign keys not being set, so now i'am using official OJB 1.0.4.

Re: Misc questions

2006-03-09 Thread Jean-Yves Sironneau
Hello, I looked more precisely at my issue regarding foreign keys not being set, so now i'am using official OJB 1.0.4. The exact issue is that when i persist a new object (that has not been persisted before), the linked object is persisted and the foreign key is set. But when i retrieve an

Re: bad sql on n-m relation to subclassed object

2006-03-09 Thread Jakob Braeuchi
hi nicolas, we recently fixed a problem concening findObjectByIdentity see 'OJB and the X-Files... :)' in this case the sql looked ok, but the wrong object was materialized. if the problem still persists, could yu please post a testcase so i can try to reproduce it. thanks jakob DELAHAYE

ODMG; SequenceManager

2006-03-09 Thread ABOU LINA
Hi, i have DB2 database; i want to make a sequence on primary key of each table and not a global sequence for all table ??? how can i do it ?? thx

Re: PB behavor of Collection item delete ?

2006-03-09 Thread ABOU LINA
i think the coste of using ODMG is very big only looking how in ODMG we query an object. in ODMG it use OQL (like SQL synthaxis where ) so is very diferent to PB wiche use Criteria to build a condition ! what do you think Mr Armine On 3/9/06, ABOU LINA [EMAIL PROTECTED] wrote: Hi,

Spring Transactions

2006-03-09 Thread Saman Ghodsian
Hi there, I have an implementation of my model with OJB using just PersistenceBroker. Now I'm looking into adding transactional support, looked into ODMG but it seems complex to implement since all my mapping and query is in Broker lingo, so I'm looking at injecting Transaction support for my

Re: Report Query in ORDER BY

2006-03-09 Thread Vasily Ivanov
ok. I have no idea what jira is. Could you give me the link? On 3/10/06, Jakob Braeuchi [EMAIL PROTECTED] wrote: hi vasily, you're right. we do not support ordering by subquery. you can open a feature request on jira. jakob Vasily Ivanov schrieb: Hi Jakob, As I understand, report

Re: Spring Transactions

2006-03-09 Thread Thomas Dudziak
On 3/9/06, Saman Ghodsian [EMAIL PROTECTED] wrote: I have an implementation of my model with OJB using just PersistenceBroker. Now I'm looking into adding transactional support, looked into ODMG but it seems complex to implement since all my mapping and query is in Broker lingo, so I'm

Re: PB behavor of Collection item delete ?

2006-03-09 Thread Armin Waibel
Hi, ABOU LINA wrote: Hi, ok so, i made DAO implementation with OJB PB in a critical project and we are in step of delivring some module of the application (the mainly module now are developped and tested). my question is : 1. what will be the cost of migrating from PB to ODMG. ??? There

Re: ODMG; SequenceManager

2006-03-09 Thread Armin Waibel
Hi, ABOU LINA wrote: Hi, i have DB2 database; i want to make a sequence on primary key of each table and not a global sequence for all table ??? how can i do it ?? I don't know which SequenceManager you use. http://db.apache.org/ojb/docu/guides/sequencemanager.html Most implementations use

Re: Report Query in ORDER BY

2006-03-09 Thread Armin Waibel
Vasily Ivanov wrote: ok. I have no idea what jira is. Could you give me the link? It's the OJB issue tracking http://issues.apache.org/jira/browse/OJB regards, Armin On 3/10/06, Jakob Braeuchi [EMAIL PROTECTED] wrote: hi vasily, you're right. we do not support ordering by subquery. you

Re: PB behavor of Collection item delete ?

2006-03-09 Thread Armin Waibel
ABOU LINA wrote: i think the coste of using ODMG is very big only looking how in ODMG we query an object. in ODMG it use OQL (like SQL synthaxis where ) so is very diferent to PB wiche use Criteria to build a condition ! what do you think Mr Armine As said in my other post, it's

Re: Change od Schema during Runtime

2006-03-09 Thread Armin Waibel
Hi Guido, Guido Beutler wrote: Hello, I would like to copy complex objects from schema A to schema B. I suppose you mean copy data from one DB to another or from table A to table B within the same DB. This would run in a managed environment (JBoss EJB Server) The schema is configured at

Re: Spring Transactions

2006-03-09 Thread Dennis Bekkering
YES you need innoDB, myIsam does not support transactions, i guess you want transactions. regards, Dennis 2006/3/10, Thomas Dudziak [EMAIL PROTECTED]: On 3/9/06, Saman Ghodsian [EMAIL PROTECTED] wrote: I have an implementation of my model with OJB using just PersistenceBroker. Now I'm