Re: Reference descriptor woes

2003-03-10 Thread Thomas Mahler
Hi Bill, I don't know if I qualify as OJB guru, but I have some thoughts here. From a "java" point of view it would be easy to identify objects on a .equals() and .hashCode() basis. But OJB must also maintain object identity accross several JVMs and one or more RDBMS. IMO there is no other way t

Any guidelines or best practices for OJB ?

2003-03-10 Thread Theo Niemeijer
Hi all. I hope this post is not to long to read. I am working with OJB for several months now, and although I am quite happy with its existance, I still have that nagging feeling that I am doing things wrong :->. Or that things that seem strange are simply caused by my own misunderstandin

RE: A better way to manage m:n relations ?

2003-03-10 Thread Theo Niemeijer
> If you want that level of control, why don't you create an object for > your indirection table? Because I like the conceptual idea of non-decomposed relations as implemented in OJB. I mean, when you have designed your high-level domain objects model, you do not think about these "relationtabl

RE: A better way to manage m:n relations ?

2003-03-10 Thread Theo Niemeijer
> If you want that level of control, why don't you create an object for > your indirection table? Because I like the conceptual idea of non-decomposed relations as implemented in OJB. I mean, when you have designed your high-level domain objects model, you do not think about these "relationtabl

Re: HSQL Timestamp sql exception illegal format

2003-03-10 Thread Thomas Mahler
See http://db.apache.org/ojb/jdbc-types.html You can use the JavaDate2SqlDate FieldConversion for this task cheers, Thomas Stefan Schlösser wrote: Hi, when a try insert something into a HSQL DB with a timestamp I get a java.sql.SQLException: Wrong data type: Timestamp format must be - mm-dd h

Re: Reference descriptor woes

2003-03-10 Thread Thomas Mahler
Hi Wally, Gelhar, Wallace J. wrote: There was a reason for this design. Say there is an abstract class A and a concrete class B extending A. No say there is a B instance b with a primary key value '17'. If we do not use the toplevel extent to define Identies it could happen that OJB addresses th

Re: HAVING clause

2003-03-10 Thread Jakob Braeuchi
hi david, because there's only one having in a query. when adding having to the criteria it would be possible to have multiple havings. the same is also true for groupby / orderby which are currently located at the criteria. and it's imo not very intuitive to add a having criteria to a where-

RE: HAVING clause

2003-03-10 Thread David Mitchell
Cool! Just curious, can you elaborate a little as to why you felt that the Having clause should go in query as opposed to in criteria? -dave -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 2:43 PM To: OJB Users List Subject: Re: HAVING cl

Re: HAVING clause

2003-03-10 Thread Jakob Braeuchi
hi all, i just commited the first try to support HAVING clause. this sample code with a having-criteria: ReportQueryByCriteria query; Criteria crit, having; crit = new Criteria(); crit.addGroupBy(new String[] { "id", "name", "vorname" }); having = new Criteria();

RE: Xdcolet support

2003-03-10 Thread Matthew Baird
yes. The problem I have is I have trouble reading the XDT files... it's like a configuration file inside a configuration file inside a configuration file. anyway, I'll package the stuff up and check it in tonight even if it doesn't work. It's not in the mainline build, so it won't break anyt

RE: Xdcolet support

2003-03-10 Thread Ebersole, Steven
I've never done any xdoclet api programming, but I'd be willing to help out if you gave me a few simple pointers and examples. I have looked at the xdoclet stuff for hibernate a little, so hopefully I could pick it up quickly. >From what I have understood, it is mainly defining the .xdt files. C

ConnectionRepository

2003-03-10 Thread Christian Eugster
Hello everybody! I am a newbie and try to implement a little application by using ojb. Now: I get an error message when I try to run my app: As I see, the error comes up in the ConnectionRepository.class in the getDescriptor(PBKey pbKey) method, where the jcdMap.get(pgKey) returns a NULL result i

Re: Reference descriptor woes

2003-03-10 Thread V.B. Skrypnyk
Hi Wally, I think you are right. If the developer implements .equals() and .hashCode() and OJB keys the objects on the hashCode then there should be no reason why we would need to travel up the hierarchy chain. It adds a bit more complexity to the inheritance implementation on the user's side, but

Re: cache confusion

2003-03-10 Thread Will Jaynes
Hi Armin, Here's some more details. I'm using OJB from CVS. I just updated today. I user ODMG api, but turn implicit locking off. Here's the behavior I see: I have a Faculty object with a proxied collection of Trainee objects. I have a web application, so let's say the user chooses a Trainee an

RE: A better way to manage m:n relations ?

2003-03-10 Thread Gelhar, Wallace J.
If you want that level of control, why don't you create an object for your indirection table? Wally -Original Message- From: Theo Niemeijer [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:59 AM To: OJB Users List Subject: A better way to manage m:n relations ? Hi all. Som

RE: Xdcolet support

2003-03-10 Thread Matthew Baird
i have some xdoclet support sitting in a changelist. I am becoming more and more busy with other stuff and haven't had time to finish it yet. I will be flying quite a bit near the end of this week and will try to finish it then. maybe someone out there would like to help? -Original Message

A better way to manage m:n relations ?

2003-03-10 Thread Theo Niemeijer
Hi all. Something that still bothers me when using OJB is the way I have to manage my non-decomposed m:n relationships. Because the indirection tabel is not directly accessible as domain objects, I have to fill a vector with references to the related objects, and then do a store on the main

RE: Xdcolet support

2003-03-10 Thread Ebersole, Steven
Bad typing morning. Of course I meant XDoclet. |-Original Message- |From: Ebersole, Steven [mailto:[EMAIL PROTECTED] |Sent: Monday, March 10, 2003 10:51 AM |To: OJB Users List (E-mail) |Subject: Xdcolet support | | |Are there currently any plans for XDcol

Xdcolet support

2003-03-10 Thread Ebersole, Steven
Are there currently any plans for XDcolet support in OJB for mapping generation? Steve Ebersole IT Integration Engineer Vignette Corporation Office: 512.741.4195 Mobile: 512.297.5438 Visit http://www.vignette.com - To unsubscr

Re: Query builder for OJB

2003-03-10 Thread casterx
Take a looka t QueryByCriteria Caster - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 6:33 AM Subject: Query builder for OJB Hello, Is anyone that use OJB know something about a query builder that could create a query automatically bas

RE: HSQL Timestamp sql exception illegal format

2003-03-10 Thread Laurent Gonzalez
Hi, Try this in your file "repository_user_hsql.xml": conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFi eldConversion " in the block. Laurent -Original Message- From: Stefan Schlösser [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 16:21 To: oJB Use

RE: Trying to get OJB up and running (newbie)

2003-03-10 Thread Peter Kirk
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 10. marts 2003 16:23 > To: [EMAIL PROTECTED] > Subject: RE: Trying to get OJB up and running (newbie) > > > Hello Peter, > > > -Original Message- > > From: Peter Kirk [mailto:[EMAIL PROTECTED] > >

RE: Trying to get OJB up and running (newbie)

2003-03-10 Thread oliver . matz
Hello Peter, > -Original Message- > From: Peter Kirk [mailto:[EMAIL PROTECTED] > It seems that the tutorial stuff has extra things defined in > the xml files > (junit tests and such?). Anyway it seemed a little confusing > to me. I just > wanted a dead simple first try - a hypersonic da

HSQL Timestamp sql exception illegal format

2003-03-10 Thread Stefan Schlösser
Hi, when a try insert something into a HSQL DB with a timestamp I get a java.sql.SQLException: Wrong data type: Timestamp format must be - mm-dd hh:mm:ss.f Swifting through the docs brought mew to the conclusion that my timestamp is declared as a java.util.date in the object to be s

RE: Reference descriptor woes

2003-03-10 Thread Gelhar, Wallace J.
There was a reason for this design. Say there is an abstract class A and a concrete class B extending A. No say there is a B instance b with a primary key value '17'. If we do not use the toplevel extent to define Identies it could happen that OJB addresses this object as A{17} or as B{17}. this

Re: cache confusion

2003-03-10 Thread Armin Waibel
Hi Will, first, which version of OJB do you use? I'm not very familiar with the caching stuff, but try to do my best ;-) > I find that I'm just not understanding how the cache works, or the > proper way to work with it. > > I use the ODMG api in a web application. I thought I had read here on >

RE: Trying to get OJB up and running (newbie)

2003-03-10 Thread Peter Kirk
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 10. marts 2003 14:37 > To: [EMAIL PROTECTED] > Subject: RE: Trying to get OJB up and running (newbie) > > > And here is the first part of some output I see (which comes > > from inside the > > open method):

RE: Trying to get OJB up and running (newbie)

2003-03-10 Thread oliver . matz
Hello Peter, > -Original Message- > From: Peter Kirk [mailto:[EMAIL PROTECTED] > When I call the "db.open" method I get a mass of exceptions. > Perhaps someone > can see where I can start looking for the problem... this might be a known problem. (See thread: "Help : OJB, ODMG API !")

R: cache confusion

2003-03-10 Thread Farnea Massimiliano
So I switched to using the ObjectCacheEmptyImpl until I understood caching better. But *even* *then* I found that objects were not always refreshed from the database. This was *totally* unexpected. I finally had to put a broker.clearCache() just after opening my transactions in order to guarant

cache confusion

2003-03-10 Thread Will Jaynes
I find that I'm just not understanding how the cache works, or the proper way to work with it. I use the ODMG api in a web application. I thought I had read here on the email list that the cache was used within a transaction but that it was cleared after the transaction ended. But I found that

Query builder for OJB

2003-03-10 Thread Sylvain.Thevoz
Hello, Is anyone that use OJB know something about a query builder that could create a query automatically based on several criteria? Thanks Sylvain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Sybase: JZ0BE: BatchUpdateException -- symbol table overflow

2003-03-10 Thread oliver . matz
Hello, I am using OJB with Sybase 11.5 ASE, JConnect 5.5. I have a problem that might be specific to sybase, but maybe someone can help me. I have an application that writes some objects into the database. When I write 30 objects, it works, but when I write 35, it fails with the appended exceptio

Trying to get OJB up and running (newbie)

2003-03-10 Thread Peter Kirk
Hi there I am trying to learn how to use OJB. At the moment I am not getting very far. Either I have not installed something correctly, or I have not configured something correctly. When I call the "db.open" method I get a mass of exceptions. Perhaps someone can see where I can start looking for