Re: Inheritance & delete

2003-11-06 Thread balza
Ciao Danilo, your solution and OJB works well! Was another silly newbie question ;-) Thank you Danilo Tommasina wrote: hi, this means that a ShopTransaction is composed by a ShopTransaction and a Transaction database entries. Because of the flag auto-delete="true" what you are experiencing

Re: Inheritance & delete

2003-11-04 Thread balza
Hello, I still don't understand. this means that a ShopTransaction is composed by a ShopTransaction and a Transaction database entries. Because of the flag auto-delete="true" what you are experiencing is absolutely normal. Also you have 2 entries in different tables for one ShopTransaction insta

Re: Inheritance & delete

2003-11-03 Thread b
Hi Armin, thank you for the answer > Why did you instantiate new ShopTransaction > for deleting?? I've seen it in tutorial --> PersistenceBroker API --> "Deleting Objects" > > Where did you lookup ShopTransaction? > missing > transaction = broker.getObjectByQuery(query); I don't understand the

Re: Inheritance & delete

2003-11-03 Thread Danilo Tommasina
Hi, ok, the problem is the reference in ShopTransaction to Transaction. auto-retrieve="true" auto-update="true" auto-delete="true"> this means that a ShopTransaction is composed by a ShopTransaction and a Transaction database entries. Because of the flag auto-delete="true" w

Re: Inheritance & delete

2003-11-03 Thread Armin Waibel
Hi, b wrote: >>>I've the code >>>public void apply() { >>> logger.debug("apply"); >>> logger.debug("transaction_id :" + transaction_id); >>> transaction = new ShopTransaction(); >>>transaction.setTransaction_id(transaction_id); Why did you instantiate new ShopTransaction for del

Re: Inheritance & delete

2003-11-03 Thread b
Thank you Danilo for the answer, I follow the example in the "mapping classes on multiple joined tables" tutorial. The table ShopTransaction and Transaction are declared as follow. I've never readed any post on the newsgroup about inheritance problem. I'm the only working with this feature? Or I'm

Re: Inheritance & delete

2003-11-03 Thread Danilo Tommasina
Hi, did you declare ShopTransaction as extent-class in the class-descriptor of Transaction? If ShopTransaction and Transaction are to be considered as different entities, then you should not declare ShopTransaction as extent of Transaction in your repository.xml (in Java is Ok). If you did not

Inheritance & delete

2003-11-02 Thread balza
Hello, sometime I'm back with the same question: I've 2 tables Transaction and ShopTransaction. ShopTransaction extends Transaction. I've the code public void apply() { logger.debug("apply"); logger.debug("transaction_id :" + transaction_id); transaction = new ShopTransactio

Inheritance & delete

2003-10-23 Thread b
Hello, I still have some problems deleting record of inherited tables/classes. I've - class A extending B like those in "mapping inheritance hierarchies" tutorial - table A and B like those in "mapping classes on multiple joined tables" docs. When I store a record in table B, is also stored a recor

Inheritance delete problem

2003-10-12 Thread balza
Hello, I've updated OJB and built to the last CVS release but still have some problem with inheritance. I've - class A and B - B extends A - to A correspond a table tA - to B correspond a table tB - between tA and tB exits an inheritance relation If I delete an entry on class B (broker.delete(b);

Inheritance delete problem

2003-10-12 Thread balza
Hello, I've updated OJB and built to the last CVS release but still have some problem with inheritance. I've - class A and B - B extends A - to A correspond a table tA - to B correspond a table tB - between tA and tB exits an inheritance relation If I delete an entry on class B (broker.delete(b);