Re: Identity

2003-11-27 Thread Rémi Bars
hi, i have done the change and all my records are in the database. But now i get this error : what does it mean? thanks ! remi org.apache.ojb.broker.util.sequence.SequenceManagerException: java.lang.UnsupportedOperationException: This feature is not supported by this implementation at

Re: Identity

2003-11-27 Thread Armin Waibel
which DB do you use? the platform implementation 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

Re: Identity

2003-11-27 Thread Rémi Bars
i m using sybase where can i find the platformù implementation? - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 9:59 AM Subject: Re: Identity which DB do you use? the platform implementation class have

OJB on the server

2003-11-27 Thread Anish
Hi, i have done an application using struts and OJB. my application runs well in local machine. but OJB doesnt work, when running the same application in a server. i havent changed anything for OJB in the server, should i? please help me to resolve this issue. Regards.. Anish..

Re: Identity

2003-11-27 Thread Armin Waibel
org.apache.ojb.broker.platforms package Armin Rémi Bars wrote: i m using sybase where can i find the platformù implementation? - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 9:59 AM Subject: Re:

Re: Identity

2003-11-27 Thread Rémi Bars
ok i see nothing about this method in PlatformSybaseASEImpl.java.. - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 9:59 AM Subject: Re: Identity which DB do you use? the platform implementation

OJB with mysql4

2003-11-27 Thread Anish
Hi, i am using mysql4 in an application which use OJB. what details should i change in jdbc-connection-descriptor platform=MySQL jdbc-level=2.0 driver=org.gjt.mm.mysql.Driver protocol=jdbc subprotocol=mysql dbalias=dburl /jdbc-connection-descriptor please help me. Regadrs.. Anish..

Re:OJB with mysql4

2003-11-27 Thread balza
What is the problem? Hi, i am using mysql4 in an application which use OJB. what details should i change in jdbc-connection-descriptor platform=MySQL jdbc-level=2.0 driver=org.gjt.mm.mysql.Driver protocol=jdbc subprotocol=mysql dbalias=dburl /jdbc-connection-descriptor

JDO

2003-11-27 Thread Stephan Wannenwetsch
Hallo, I want to write a little demo programm using the JDO API for persistence. But I have problems to get the import for OjbStorePMF(). Which files do I have to include to my webproject to be able to use the JDO API. Thanks, Stephan

Re: [odmg] memory leak on write

2003-11-27 Thread Phil Warrick
Hi again, It was my problem, not OJB's. My mapping file and Java classes had gotten out of sync (OJB mapping tools are looking very promising now, perhaps it's time to stop manual synchronization...). Garbage collection is now keeping memory use stable. In the past, I had worked around

Re: OJB in server

2003-11-27 Thread Brian McCallister
Anish, we really need more information than this. What type of container are you running it in on the server? What type of container are you running it in locally? (Servlet, EJB, simple jvm, etc). What error messages do you get? -Brian On Friday, November 28, 2003, at 06:09 AM, Anish wrote:

Re: [odmg] memory leak on write

2003-11-27 Thread Brian McCallister
On Thursday, November 27, 2003, at 07:34 AM, Phil Warrick wrote: -the profiler OptimizeIt is very useful for memory leak investigation once learned. Very important to create a minimal test program otherwise the data explosion makes it difficult to isolate problem references. I haven't used

Deletion Bug!!!!!?

2003-11-27 Thread TINO SCHÖLLHORN
Hi, I have a really weird problem and I don't if I am doing something wrong or if this is a bug of OJB. I have basically 2 classes: Person and Department. I defined a N:M relation between those two. Now I want to remove a Department from a Person. But what happens is, that OJB is trying to

Re:Deletion Bug!!!!!?

2003-11-27 Thread balza
autodelete flag in your xml mapping file is true or false? an example: ... reference-descriptor name=country class-ref=allibo.logistic.Country auto-retrieve=true auto-update=true auto-delete=true ... Hi, I have a really weird problem and I don't if I am doing something wrong or if this is a

Re: Deletion Bug!!!!!?

2003-11-27 Thread Philippe Boisaubert
Always the same question, I ask it few days ago ! First you need to configure your repository (with auto-delete=false), i think you've already do this. Then use the ManagedArrayList as a collection class (by default it's a RemovalAwareCollection) like this (as an a attribute of the collection

Mapping question

2003-11-27 Thread Norbert . Woegerbauer
Hi, I've got a 1:n mapping from table A to table B. But the foreign key field of table A is not it's primary key. I can't find how to tell OJB to use another field to join table B. Thanks for help, Norbert. - To unsubscribe,

Re: Identity

2003-11-27 Thread Rémi Bars
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 for the first record when i try to insert a second record i get

Re: Identity

2003-11-27 Thread Armin Waibel
Hi, I think this is a bug in SequenceManagerNativeImpl. This should be fixed with current CVS. A workaround for rc4 could be a replacement of protected long getUniqueLong(FieldDescriptor field) throws SequenceManagerException { return -1; } with private long tempKey = -1; protected long

Re: Identity

2003-11-27 Thread Rémi Bars
ok thanks it works fine now Remi - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 5:31 PM Subject: Re: Identity Hi, I think this is a bug in SequenceManagerNativeImpl. This should be fixed with current

RE: Mapping question

2003-11-27 Thread Norbert . Woegerbauer
Thanks, I defined it like that, but: If A is 1 and B is n. In A class descriptor write : collection-descriptor name=relation_name_in_A_class element-class-ref=url.B inverse-foreignkey field-ref=mykey/ /collection-descriptor And in B class descriptor write this field-descriptor

Container managed Transaction

2003-11-27 Thread Stephen Ting
Can i programatic rollback managed transaction in ODMG api? I have the following challenge. 1. ((NarrowTransaction)tx).markDirty(document1); 2. ((NarrowTransaction)tx).markDirty(subDoc1); 3. ((NarrowTransaction)tx).markDelete(subDoc2); In the above sequence, says I excute statement 1 and 2

Using Dynamic proxies

2003-11-27 Thread Vijay
Hello all, In the tutorial about dynamic proxies, it has been written that we don’t have to implement proxy class for each class. Also, in the top of the page, it is written that “Dynamic proxies provided by OJB. They can simply be activated by setting certain switches in repository.xml. This is

Instantiation PersistenceBroker failure in upgrading to .rc4

2003-11-27 Thread alessandro olivieri
I'm upgrading my application from ojb-1.0.rc1 to .rc4. I've replaced old ojb jar and all needed library with new release's jar. I've replaced old ojb.properties with new standard ojb.properties. I haven't replaced my repository.xml. The following code is my PersistenceBroker instantiation import

Re: Re:Deletion Bug!!!!!?

2003-11-27 Thread TINO SCHÖLLHORN
Hi, the autodelte flag is set to false. Here is my complete collectin-descriptor !-- N:M - Relation Company-Person -- collection-descriptor name=persons element-class-ref=kos.intranet2.om.Person auto-retrieve=true auto-update=true auto-delete=false proxy=true

Re: Deletion Bug!!!!!?

2003-11-27 Thread TINO SCHÖLLHORN
Hi, thanks - I think that was the solution. But I don't think that it was intended by the developers of OJB that OJB deletes instances by default, or was it? Tino - Original Message - From: Philippe Boisaubert [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.ojb.user Sent: Thursday,