Re: ojb newbie..

2003-10-17 Thread Brian McCallister
I have written three new tutorials, in CVS, introducing mapping, the PB api, and the ODMG api. As so many things refer back to the current tutorials they are not published on the site yet. I have them up for review purposes on my personal site, and they all work (I think). You are welcome to ta

ojb newbie..

2003-10-17 Thread Hiu Yen Onn
hi, i downloaded ojb1.0-rc4, unziped it and discovered, there are plenty of examples in the src/test folder. i hope i can learn ojb from the examples(besides tutorial 1, 2 and 5) given. but, they are all scattered around... how do i inter-related them? are there any more documentation describing t

RE: i want to rollback if a PersistenceBroker transaction failed

2003-10-17 Thread Hiu Yen Onn
if 'doc' and 'item' are both persistence objects, and they are having m:n relationship. if i set [auto-update=true], then by persisting 'doc' will automatically persisting 'item' too. just make a testcase. i have a 'doc' consists of 3 'item'. if i coded as such broker.beginTransaction();

1:1 association set to null on update

2003-10-17 Thread Avril Kotzen
I am using OJB 1.0.rc4 Persistence Broker API. I am not using anonymous keys. Under a certain scenario, an existing 1:1 association is being lost on an update. Here is the scenario. Assume object A and B have a 1:1 relationship. Object A has an attribute b of type B and an attribute bId which sho

Re: Using PersistenceBroker store with inheritance mappings

2003-10-17 Thread Justis Peters
Hi Matt, You will need to either use the "autoincrement" feature that OJB provides, or you will need to manually set your primary key before calling store(). See the following link for details on using "autoincrement". In addition to a number of preexisting implementations, you can even writ

UNION with QueryBySql "trick"

2003-10-17 Thread Brian Chaplin
FYI. I have 2 different extents (PaymentDecision and CommitmentDecision) that extend the same class, Decision . Each is persisted in a different table. When I try to retrieve Decision using QueryBySQL, I have to associate one of the descendent tables to Decision in its class-description table att

Logging

2003-10-17 Thread Goncalo Luiz
Hello. I set all debug levels to FATAL but I still getting info messages. The logger I'm using is org.apache.ojb.broker.util.logging.PoorMansLoggerImpl My application is text-based and I, obviously, don't want this log messages to appear to the end-user :) Thanx, Gonçalo. [junit] [org.apach

Using PersistenceBroker store with inheritance mappings

2003-10-17 Thread Matt Mastrangelo
I'm having some trouble using the PersistenceBroker store method on an object mapped with a simple inheritance hierarchy. Here's how my classes are configured: public class Person { private String oid; private String lastName; private String firstName; // (setters and getters) }

RE: Connection failed if DB restarted?

2003-10-17 Thread Clute, Andrew
Thanks for the answer...worked the way I wanted it to for my immediate problem in production. Not keen on the fact that I know have a ton of extra SQL calls--but I guess that is the price I pay right now! :) Thanks again! -Andrew -Original Message- From: Armin Waibel [mailto:[EMAIL PROT

Open/Close connection best pratice

2003-10-17 Thread Goncalo Luiz
Hello. I think this was already discuted here but it doesn't make sense in my head. Is it better pratice (i.e. fastest) to open a database (Implementation.newDatabase().open()) for each transaction or to open a database in the beggining of the whole application and close it when the app ends

Re: problem with update inherits

2003-10-17 Thread Justis Peters
Hi Ramon, The members of this list can probably help you, but we will need to see more details on what you are doing. Can you send us the following? - The code snippet in question - Your repository_user.xml - The version number of OJB you are using - Any exceptions reports or logs that are relev

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Justis Peters
Hi Jakob, Thanks for your reply! Perhaps I have some ideas on how we could do this. Here are two: Idea 1 -- Join all the columns from all tables in the hierarchy together, and then look to see which join columns are not null, in order to determine the true subclass I demonstrate this usi

RE: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread BURT, RANDALL (CONTRACTOR)
Jumping in late, but its germane to what I'm working on. So, if I read what everyone is saying correctly, the following: does not do what I would expect? : 1. Q

problem with update inherits

2003-10-17 Thread Ramon Cano Granizo
I'm trying update an object than inherits from other, the problem 's than de base class doesn't update, it's makes an insert and an update of the extends class. Could someone help? - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Why am I getting this message in my logs? "Destroy object was called"

2003-10-17 Thread Armin Waibel
Hi, On Fri, 17 Oct 2003 12:13:08 -0500, <[EMAIL PROTECTED]> wrote: I keep getting this message in my logs. Also this seems to be causing a cache of this object. The object will not reflect changes. Even though accessing it a different show it was changed. Can someone tell me what this is and if i

Re: ConnectionValidator (was: Re: Connection failed if DB restarted?)

2003-10-17 Thread Justis Peters
Hi Armin, Armin Waibel [EMAIL PROTECTED] wrote: > I propose to add the associated JdbcConnectionDescriptor > as argument too > > >>>= > >>>ConnectionValidator.java > >>>= > >>>package org.apache.ojb.broker.accesslayer; > >>> > >>>public interface Co

Why am I getting this message in my logs? "Destroy object was called"

2003-10-17 Thread JStanczak
I keep getting this message in my logs. Also this seems to be causing a cache of this object. The object will not reflect changes. Even though accessing it a different show it was changed. Can someone tell me what this is and if it's good or bad? It looks bad to me. [org.apache.ojb.broker.acces

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Jakob Braeuchi
hi justis, wallace, this problem is caused by Identity#equals noch checking objectsRealClass . consider the following situation: a select for InterfaceA fires 2 selects SELECT A0.VALUE_,A0.ID FROM A_TABLE A0 retrieving Table_A objects with ids 1 and 2 SELECT A0.VALUE_,A0.ID FROM B_TABLE A0 INNER

Re: ConnectionValidator (was: Re: Connection failed if DB restarted?)

2003-10-17 Thread Armin Waibel
Hi again, this sounds great! I propose to add the associated JdbcConnectionDescriptor as argument too >= >ConnectionValidator.java >= >package org.apache.ojb.broker.accesslayer; > >public interface ConnectionValidator >{ >public boolean isValid(

Re: ConnectionValidator (was: Re: Connection failed if DB restarted?)

2003-10-17 Thread Justis Peters
Hi Armin, Armin Waibel [EMAIL PROTECTED] wrote: > On Fri, 17 Oct 2003 11:54:56 -0400, Justis Peters <[EMAIL PROTECTED]> > wrote: > >Could we handle this by defining an interface and allowing users to > >specify their own tester class? Here is what I am picturing: > > > yes this will be possible

Re: multiple databases

2003-10-17 Thread Brian McCallister
Is there a way how I can simultaneously use multiple databases from OJB? Yes, configure each database in the repository_db.xml and retrieve connections by the jcdAlias specified in the descriptor. Configuration: http://db.apache.org/ojb/repository.html#jdbc-connection-descriptor Usage via the PB

RE: multiple databases

2003-10-17 Thread Ajitesh Das
Earlier this used to support the tables can be in different different database using repository.xml. Nowadays you can have only PBs accessing different database. They claim that this earlier design makes the impl. complex - for e.g. 2 ph. commit is not needed anymore. But if you use the multiple PB

OQL query returns the same object multiple times

2003-10-17 Thread Patrick Sager
Hi I have a 1:n relationship. If I do a query for the parent object, based on some attributes of the child-object, the query returns a parent object, for each matching child object. This way, the same parent objects is returned multiple times. Shouldn't this be filtered out? Best regards -- Pat

Re: OJB + STRUTS + HSQLDB -> restarting application

2003-10-17 Thread LAURENT Stephane
Hi, same problem for me ... Anybody have a solution ? I can't replace application on the same context root with tomcat manager because remove application can't remove all lib. (struts.jar ?). I think force garbage collector can't solve this problem because connection seems to be in use ... This a

Re: Is OJB the right solution?

2003-10-17 Thread LAURENT Stephane
Hi, if I understand, you have an application working fine without OJB and you want to use OJB to import data from different database structure. I think it's a good idea : simply extend your class and define one class per import "way". base class : A.class define AfromDS1.class extends A define Afr

multiple databases

2003-10-17 Thread Manukyan, Sergey
Folks, Is there a way how I can simultaneously use multiple databases from OJB? Thank you -Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If

Re: WrappedConnection Warning after getReportQueryIteratorByQuery

2003-10-17 Thread Benjamin Wagner
i found a solution for it. i need to close the connection on my own, but not by calling "con.close()" - I need to call "broker.serviceConnectionManager().releaseConnection()" from where i got the connection and than everything works fine. thanks for your help ben - Original Message - Fr

Re: WrappedConnection Warning after getReportQueryIteratorByQuery

2003-10-17 Thread Benjamin Wagner
Hi again, This does not help me at all. Now I do get the warnings on every statment i execute. do you see any other ways to get around this?? best regards, Ben - Original Message - From: "Armin Waibel" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 1

Re: Connection failed if DB restarted?

2003-10-17 Thread Armin Waibel
Hi again, On Fri, 17 Oct 2003 11:54:56 -0400, Justis Peters <[EMAIL PROTECTED]> wrote: Hi Armin, Could we handle this by defining an interface and allowing users to specify their own tester class? Here is what I am picturing: yes this will be possible, but can you describe what's the advanta

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Jakob Braeuchi
hi justis, well, but the sample code does NOT show any extents ;) i just installed your testcase and will start digging into it. jakob Justis Peters wrote: Hi Jakob, Thanks for your reply! Yes. What you describe is exactly what I am doing. I have read your discussion with Brendan, and I unde

Re: Connection failed if DB restarted?

2003-10-17 Thread Justis Peters
Hi Armin, Could we handle this by defining an interface and allowing users to specify their own tester class? Here is what I am picturing: = ConnectionValidator.java = package org.apache.ojb.broker.accesslayer; public interface ConnectionValidato

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Justis Peters
Hi Jakob, Thanks for your reply! Yes. What you describe is exactly what I am doing. I have read your discussion with Brendan, and I understand what you are saying. This is in direct conflict with what is implied in "http://db.apache.org/ojb/tutorial3.html";, though. The section titled "mapp

Re: Connection failed if DB restarted?

2003-10-17 Thread Armin Waibel
Hi Andrew, you can use the 'validationQuery' attribute of connection-pool element to specify a validation query. This query will be executed each time before a connection was delivered by the pool. Any proposals to make this more sophisticated are welcome. regards, Armin On Fri, 17 Oct 2003 11:20:

Re: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Phil Warrick
That is kind of what I assumed. It makes using proxies somewhat worthless in an EJB environment, at least in my opinion. Proxies to me seemed to be a great way to do lazy instantiation, and keep the client ignorant of persistence mechanisms. So, if you have to materialize the entire graph before se

Connection failed if DB restarted?

2003-10-17 Thread Clute, Andrew
I apologized in advance for the increase in mail traffic today. I have checked the archives for an answer to this, to no avail. I am seeing, as expected, if our Database has been restarted that any db connections in the pool as becoming invalid. I understand how this is happening -- the connection

RE: ODMG: ObjectEnvelopeTable.reorder

2003-10-17 Thread Gerhard . Grosse
Hi Charles, Thanks for your idea and code snippets. I'll try if this helps in my cases. I have a feeling it won't, though. In the A->B example reorder() doesn't change the initial order, so calling it twice won't either. But now I have a whole weekend ahead to spoil with thinking about this pro

RE: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
That is kind of what I assumed. It makes using proxies somewhat worthless in an EJB environment, at least in my opinion. Proxies to me seemed to be a great way to do lazy instantiation, and keep the client ignorant of persistence mechanisms. So, if you have to materialize the entire graph before s

Re: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Phil Warrick
Hi Andrew, All that leads me to another question that I don't seem to find an answer to: if a remote EJB passes off an OJB dataobject, I would assume you cannot use any proxies because it would not be able to walk back across the wire, correct? I am currently not making use of any proxies because

Re: Problem with refreshing references; Possible bug?

2003-10-17 Thread Jakob Braeuchi
hi andrew, the method retrieveReference should check for null: ... else { refObj = getReferencedObject(obj, rds, cld); if ((refObj != null) && (!Proxy.isProxyClass(refObj.getClass())) && (!(refObj instanceof VirtualProxy)))

Re. : Re: why none answer ?

2003-10-17 Thread stephane . labbe-ext
Thanks you very much for your answer ... so it's not possible without sql ... De Jakob Braeuchi : > salut stephane, > > you could use a query by sql, there you can do what you like. > > jakob > > [EMAIL PROTECTED] wrote: > > > Is my question fool ? > > > > How create a query between two table

Re: Database views

2003-10-17 Thread Thomas Mahler
Hi Manjula, OJB requires to have at least one attribute per class defined as primary key. But it is sufficient to delare is as primary key in the field-descriptor. It is not required to be defined a primary key in the database. So for a view you just have to define those attributes as primary

RE: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
Thanks for the offer...I can definitely peer around in the code to get a feel for it. However let me ask you this...how would I best use OTM in this situation? Would OTM solve my problem? Let me rephrase, assuming I could use OTM, would the EJB service continue to pass out clones to client applic

Re: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Brian McCallister
There is no documentation outside of the javadocs for it yet. I can happily provide pointers and samples for you, if you like, from my "learn the OTM" project. I am working on learning my way around it well enough to write decent docs on it -- just a matter of finding the time. I wouldn't call

ODMG. Some general questions

2003-10-17 Thread Weaver, Scott
1. Should collections for 1:n relationships be updated automatically? Example: I have a class "foo" which has a collection of "bars". The bar class has a corresponding reference to its parent "foo." If I create a new bar, do a bar.setFoo(fooInstance) and save that bar, should I expect fooIn

Re: 1:n relationship (sub element ordering) (solved!)

2003-10-17 Thread Daniel Perry
Fantastic! clearing the cache and use of a custom query has solved the problem, and was a pretty simple solution! It's a pitty i hadnt noticed that bit at the bottom of tutorial4. Thanks a lot for the help, Daniel. - Original Message - From: "Jakob Braeuchi" <[EMAIL PROTECTED]> To: "OJB

Re: Collections in nested object from base class are not supported (NoSuchFieldException)?

2003-10-17 Thread Armin Waibel
Hi Andy, it's done. Your patch + updated test cases now in CVS. Thanks for contribution. regards, Armin On Thu, 16 Oct 2003 11:50:31 -0400, Andy Malakov <[EMAIL PROTECTED]> wrote: Hello All, It looks OJB 1.0RC4 does not support collections in nested object, when nested object belongs to parent

RE: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
Thanks for the response...you added some interesting point. I knew somewhat that the OJB cache only worked with QueryByIdentity(), but the gains are still significant for us. Our object model has some rather deep and wide trees (for better or worse), and the gain on object materialization on the h

OTM. Is it stable enough for production use?

2003-10-17 Thread Weaver, Scott
Is the OTM, layer stable enough to use in production, or should I just stick with ODMG for now? If yes, were is the most stable source: HEAD or rc4 from the apache download site? Thanks, || | Scott T Weaver | | <[E

Re: Problem with refreshing references; Possible bug?

2003-10-17 Thread Jakob Braeuchi
hi andrew, please try this. jakob Jakob Braeuchi wrote: hi andrew, yes, this is a problem. class-descriptor refresh overrides reference-descriptor refresh. imo we should refresh the referenced instance in PersistenceBrokerImpl#retrieveReference. but this requires some enhancements in getDB

Re: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Brian McCallister
Depending on your deployment timeline you might want to look into the OTM for this type of deployment. It provides the high-level functionality you are looking for from ODMG, but it also knows how to play very nicely with JTA transactions -- a big plus in EJB containers. The OTM is the least ma

Re: 1:n relationship (sub element ordering)

2003-10-17 Thread Jakob Braeuchi
hi daniel, Daniel Perry wrote: I didnt try that - didnt know about that option. However, i sort of fixed the problem by executing the following code after any update/insertions which may screw up ordering. I think perhaps this is better that the refresh=true option, as the cache is only cleared

Re: 1:n relationship (sub element ordering)

2003-10-17 Thread Daniel Perry
I didnt try that - didnt know about that option. However, i sort of fixed the problem by executing the following code after any update/insertions which may screw up ordering. I think perhaps this is better that the refresh=true option, as the cache is only cleared when data is changed, so the cach

Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
I currently have our application running using OJB. I am using the PB interface because it was the easiest to prototype and get up and running. We have a Struts application that calls a collection of EJB services for retrieving specific object-trees that the web app needs, along with Add/Update/De

Re: Problem with refreshing references; Possible bug?

2003-10-17 Thread Jakob Braeuchi
hi andrew, yes, this is a problem. class-descriptor refresh overrides reference-descriptor refresh. imo we should refresh the referenced instance in PersistenceBrokerImpl#retrieveReference. but this requires some enhancements in getDBObject to avoid loops. jakob Clute, Andrew wrote: I shoul

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Jakob Braeuchi
hi wallace, currently there are problems when mixing extents and super-reference. imo it has something to do with Identity and caching. the examples on the website do NOT mix those features. i always regarded multi-table join as a technical feature to support mapping ONE class onto MANY tables.

DefaultCacheImpl a memory leaker ?

2003-10-17 Thread Stefan Schlösser
Hi, I have been using OJB for a while quite successfully. Today I run into an outofmemory exception which I could trace to the ojb cache. I am doing a copy from one DB to another involving 10+ objects. Each object is stored in the cache using a key derived from its identity (int). These st

RE: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Gelhar, Wallace Joseph
Hi Jakob, Sorry to be chiming in from left field, but does this imply that 'super' references and extents cannot be used together in the same object model? In the same class descriptor? Please explain. Wally -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Friday

Antwort: RE: non-decomposed m:n mappings problem......

2003-10-17 Thread Gerhard . Grosse
Yes, that's what I meant. If you don't do it, you try to persist objects that are in an inconsistent state, which could easily explain the DELETEs. Now why this causes an infinite recursion, I have no idea. Sorry. Gerhard PS: You are not locking the Role objects, so I assume you left the "us

RE: ODMG: ObjectEnvelopeTable.reorder

2003-10-17 Thread Charles Anthony
Hi, I, too, have had problems with this algorithm - and, it is not just deletes that have a problem - my FK violations actually happen on an insert update. My particular scenario was solved by calling re-order twice. I then patched my local copy to call re-order until no changes were performed.

Re: Antwort: Re: Initializing collection attributes

2003-10-17 Thread Gerhard . Grosse
Hi Armin, I certainly look forward to the upcoming cache improvements. The cache-by-class feature is very useful and I already use it to distinguish between basically static and more dynamic data. Regards, Gerhard Armin Waibel <[EMAIL PROTECTED]> 16.10.2003 16:28 Bitte antworten an "OJB Us

ODMG: ObjectEnvelopeTable.reorder

2003-10-17 Thread Gerhard . Grosse
Hi, Since I am having problems with referential integrity violations when deleting objects I tried to understand the reorder() method in org.apache.ojb.odmg.ObjectEnvelopeTable. >From what I understand, the way this reordering is implemented leads to a strong bias of the final order towards t

Re: why none answer ?

2003-10-17 Thread Jakob Braeuchi
salut stephane, you could use a query by sql, there you can do what you like. jakob [EMAIL PROTECTED] wrote: Is my question fool ? How create a query between two table with no relationship, no path ? Thanks for all your help --

Re: 1:n relationship (sub element ordering)

2003-10-17 Thread Jakob Braeuchi
hi daniel, have you tried refresh=true in collection-descriptor ? this forces a reload of the grades even if job is in the cache. jakob Daniel Perry wrote: ok, still cant figure this out. If i add the gradename column to the query string like so: String queryStr ="select job from " + Job.clas

why none answer ?

2003-10-17 Thread stephane . labbe-ext
Is my question fool ? How create a query between two table with no relationship, no path ? Thanks for all your help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 1:n relationship (sub element ordering)

2003-10-17 Thread Daniel Perry
ok, still cant figure this out. If i add the gradename column to the query string like so: String queryStr ="select job from " + Job.class.getName() + " where deleted=0 order by jobname,gradename"; it thows an exception (understandibly) - it's trying to sort by gradename in the wrong query: SE

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Jakob Braeuchi
hi justis, please send me your testcase. jakob Justis Peters wrote: Hi All! Just a couple weeks ago I started using OJB, and I am extremely impressed. My gratitude goes to all who put in the work to make it possible. Upon converting some of the more complicated parts of my object model, I en

Re: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-17 Thread Jakob Braeuchi
hi justis, is this another case of mixing extents and 'super'-references ? i had a long offline discussion with brendan regarding this topic: http://article.gmane.org/gmane.comp.jakarta.ojb.devel/3933 http://article.gmane.org/gmane.comp.jakarta.ojb.devel/3920 jakob Justis Peters wrote: Hi All!

Re: 1:n relationship (sub element ordering)

2003-10-17 Thread Jakob Braeuchi
hi daniel, there are two ways to define ordering of related objects: 1.) you can define a static ordering in the collection-descriptor. 2.) for dynamic ordering (based on the owner of the related objects) use a query-cusomizer. hth jakob Daniel Perry wrote: I've got two classes with a 1:n

cache cleaning questions

2003-10-17 Thread Marcello Zaniboni
I am new to OJB, therefore my questions about it could be very naive... please be patient :) My questions concern cache cleaning in a persinstance broker. Please consider the following example: I have implemented a simple class, Test. Its main removes all the records from the associated table and i

Re: i want to rollback if a PersistenceBroker transaction failed

2003-10-17 Thread Danilo Tommasina
broker.store() can be called only on persistent objects defined in your data-model. So if 'doc' is not a persistent object itself, then you will have to extract all the persistent objects and store them with several calls to broker.store(), something like this: broker = getBroker(new PBKey(si

RE: non-decomposed m:n mappings problem......

2003-10-17 Thread Hiu Yen Onn
u mean i should code as such? public static User createUser(){ User user = new User(); user.setLabel("yenonn"); user.setDesignation("programmer"); user.setFullName("Hiu Yen Onn"); user.setPassword("yenonn"); for(int i=0; i<3; i++){ Ro

RE: i want to rollback if a PersistenceBroker transaction failed

2003-10-17 Thread Hiu Yen Onn
hi, let's say, 'doc' contains of bunch of data. let's make it 'doc' contains of item1, item2 and item3. if let say, when the ojb persisting 'doc', item1 is persisted successfully, but, item2 failed. will ojb rollback in this case (make no changes on the db, even item1 is not persisted)? how can i

AW: AW: AW: Is OJB the right solution?

2003-10-17 Thread Christian Plate
Thank you! This looks great! Thank you all for your help! Christian Plate -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. Oktober 2003 16:23 An: [EMAIL PROTECTED] Betreff: RE: AW: AW: Is OJB the right solution? >From a general l

Re: i want to rollback if a PersistenceBroker transaction failed

2003-10-17 Thread Danilo Tommasina
try this code. try{ result = doc.getResult(); broker = getBroker(new PBKey(site.getDbConnectionAlias())); broker.beginTransaction(); broker.store(doc, ObjectModificationDefaultImpl.INSERT); broker.commitTransaction();

RE: bug OJB?

2003-10-17 Thread Réda Benzair
Thank you Leandro I will test your pach I would give the news -Original Message- From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] Sent: jeudi 16 octobre 2003 20:46 To: OJB Users List Subject: Re: bug OJB? Hi. I had the same problem with deleteCollections. A defensive copy