sequence + inheritance + anonymous key

2004-12-21 Thread Nouguier Olivier
Hi look thread: http://www.mail-archive.com/ojb-user@db.apache.org/msg10447.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OJBDoclet] sequence + inheritance + anonymous key

2004-12-21 Thread Nouguier Olivier
> //-> id is null, but maSeq.nextval was called ... > > > We found that access is set to "readonly" for A and "anonymous" for B in > 'repository_user.xml'. > And we would like to set these values to "readwrite"; how to do it? > (the annotation access="readwrite" doesn't work with others parameters ...) > > Thanks. > > Christian BOUESSAY > -- Nouguier Olivier <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OJBDoclet] sequence + inheritance + anonymous key

2004-12-21 Thread Nouguier Olivier
gt; String id = obj.getId(); > > //-> id is null, but maSeq.nextval was called ... > > > We found that access is set to "readonly" for A and "anonymous" for B in > 'repository_user.xml'. > And we would like to set these values to "readwrite"; how to do it? > (the annotation access="readwrite" doesn't work with others parameters ...) > > Thanks. > > Christian BOUESSAY > -- Nouguier Olivier <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ojb, xdoclet and inheritance

2004-06-24 Thread Nouguier Olivier
On Thu, 2004-06-24 at 23:07, Thomas Dudziak wrote: > Nouguier Olivier wrote: > > > Hi all, and sorry for the wait ( my child needed a long story to sleep ) > > no problem, there are things that are more important than work :-) > > I was wondering: why do you have includ

Re: ojb, xdoclet and inheritance

2004-06-24 Thread Nouguier Olivier
Hi all, and sorry for the wait ( my child needed a long story to sleep ) Here are Person < Salary and the repository generated. The problem is on Salary(id) which is pk of salary and fk on Persons(id). As Salary has no id ( it's inherited ) I have to put @field in class metadoc ===> so acces

ojb, xdoclet and inheritance

2004-06-24 Thread Nouguier Olivier
Hi all, We're using ojb in a big project, with many many inheritance relations. We choose the One Table per object strategie. So: class A { int id int fieldA } Class B extends A { int fieldB } Using xdoclet for generating mapping file brings us to put an @ojb.reference name="id" in C

SequenceManagerStoredProcedureImpl and DB2

2004-06-14 Thread Nouguier Olivier
Hi all As many knowns sequences are not implemented by all db provider. Special mention to DB2 AS400 in my jobs. I was looking to SequenceManagerStoredProcedureImpl sequence manager solution. Quite pleasant by not implemented within PlatformDb2Impl just for M$SQLServer ... I'd like to implement

Perhaps a little fix for the doc

2004-04-29 Thread Nouguier Olivier
Hi all, I've just spend few hours to try to retrieve a Transaction with currenTransaction() from an Implementation issued from OJB.getInstance() in a managed environement ( jboss ), it was alway "null". Lurking the javadoc and src test case learn me to use OJBJ2EE_2.getInstance() instead o

Re: OQL Limit Queries

2003-10-06 Thread Nouguier olivier
Jakob Braeuchi wrote: hi sukesh, afaik the limits cannot be defined in the oql-query. but you can do the following: OQLQuery query = odmg.newOQLQuery(); query.create( "select ." ); query.bind( ... ); ((Query)query).setStartAtIndex(); hth jakob Su