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
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
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
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
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
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
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
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
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
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);
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);
11 matches
Mail list logo