Re: Queries for M:N collections?

2003-10-03 Thread LAURENT Stephane
Hi, I'm not sur to understand, but ... you have : Class A { Integer idA; String attribute1_A; String attribute2_A; ... Collection listOfA } if your repository is like this : class-descriptor class=A table=tableA field-descriptor name=idA column=ID jdbc-type=BIGINT

Re: RC3 x RC4 ?

2003-10-03 Thread Thomas Mahler
Hi Glauber, It's always recommended to use the latest (hopefully greatest) version. There has been one complaint about performance degradation, but it has not been verified so far. Thomas Glauber Andrade wrote: Hi, Thanks. I only want to know if the new version is better, because i read some

Re: ODMG patch: per-transaction implicit locking

2003-10-03 Thread Thomas Mahler
Hi Phil, I like your idea. I've just checked in some code that implements it. I added the method setImplicitLocking to the TransactionExt interface. This allows to have it available in TransactionImpl *and* in NarrowTransaction. By this trick I only had to change OJB but not OJBJ2EE_2. thanks

Re: Problem with keyword as column name

2003-10-03 Thread Edson Carlos Ericksson Richter
MS SQL accepts keywords in two ways: using [] and using . Have you tested field-descriptor column=\Key\ jdbc-type=VARCHAR name=key/ I think the only problem should be with XML sintax... Jakob, the escaped values should be sent directly to database (but then we are

RE: Problem with keyword as column name

2003-10-03 Thread Oliver Rutherfurd
The problem is not the escaped syntax being sent to the database, rather it's OJB looking for the escaped name in ResultSets returned from the database. In other words, select [key] from foo will result in key being the column name in the returned ResultSet (not [key]). When OJB goes to fetch

Re: Object-cache or cache-object?

2003-10-03 Thread Armin Waibel
Hi Edson, Can someone fix the DTD (see bellow)? Is fixed. Thanks! Is this expected? I wish I could say 'yes', but it's no. Sounds like a synchronization problem. I checked in a new version of CacheDistributor, does this works for you (file is attached)? (We don't have a test case to reproduce

Incorrect SQL generated

2003-10-03 Thread Gelhar, Wallace Joseph
I have a model that is as follows: Person Driver (Interface) | | | PersonImpl DriverManaged DriverUnmanaged | | | DriverManagedImpl DriverUnmanagedImpl

Accessing other tables.

2003-10-03 Thread denis
Hello, I am trying to get some data into my OJB enabled app from a pure SQL app. I've set up an intermediary table and I can store data in it fine, but when I try to get the data from the table into my OJB enabled app (even though i've set up a bean for the table in OJB) I get a null object back.

Re: Accessing other tables.

2003-10-03 Thread Justis Peters
Hi Denis, Can you send us your repository_user.xml, the bean class, and the snippet of code that accesses it? One problem I encountered when I first started using OJB is that using a QueryByCriteria does not work how you would expect if you have any java primitive types (like int) in your

Re: ODMG patch: per-transaction implicit locking

2003-10-03 Thread Phil Warrick
Hi Thomas, Great. I'll try it with the next release. Phil Thomas Mahler wrote: Hi Phil, I like your idea. I've just checked in some code that implements it. I added the method setImplicitLocking to the TransactionExt interface. This allows to have it available in TransactionImpl *and* in

Strange null pointer exceptions

2003-10-03 Thread Jan Berkel
Hi all, I keep getting NullPointerExceptions while retrieving an object from the database (OJB 1.0RC4). My class hierarchy is as follows: Template (Interface) BaseTemplate (Abstract class implementing Template) MailTemplate (Concrete Implementenation extending BaseTemplate) the code to fetch

mysql identity columns?

2003-10-03 Thread Jason Pyeron
Any suggestions on this? I am trying to inser a NEW Address object. -Jason Pyeron class com.pyerotechnics.customer.mmserv.rejistore.tier1.dataobjects.Addresses: addr1:t addr2:t addr3:t city:t id:null name:test notes:x postal:t state:t type:Work typeRef:null phoneNumbers:null