strange behaviour Query.setStartAtIndex() and Query.setEndAtIndex()

2004-08-10 Thread Peter Wieland
Hi all, I found something strange when using Query.setStartAtIndex(...) and Query.setEndAtIndex(.). The following is taken from a JUnit TestCase: Query query = getAQuerySomeWhere(); query.setStartAtIndex(start); query.setEndAtIndex(end); Collection result =

AW: strange behaviour Query.setStartAtIndex() and Query.setEndAtIndex()

2004-08-10 Thread Peter Wieland
-Ursprüngliche Nachricht- Von: Peter Wieland [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. August 2004 10:22 An: [EMAIL PROTECTED] Betreff: strange behaviour Query.setStartAtIndex() and Query.setEndAtIndex() Hi all, I found something strange when using Query.setStartAtIndex

Re: Multiple instances of one persistent object

2004-08-04 Thread Peter Wieland
of order1 (not proxied) is not equal to the identity of item.getOrder() because of different primitives used to build the pk. there have been post about identities created based on the definition in the repository and other based on the jdbc-types. jakob Peter Wieland schrieb: Hi, I

Re: Multiple instances of one persistent object

2004-08-04 Thread Peter Wieland
Hi Jakob well, it is not really that important anymore, as it seems to work now, but nevertheless I woul very much like to get a little deeper understanding. Thus, this post. does this problem occur only when you navigate over both relationships ? are both items the same ? No. Sorry. I was

Multiple instances of one persistent object

2004-08-03 Thread Peter Wieland
Hi, I stepped over the following problem yesterday. Took us half the day to get some understanding of what's going on, but we could not figure out how to fix it: We have three objects: Order - Item - Aggregate connected with to (bidirectional) 1-to-1 associations. All of the associations are

Closed Persistence Brokers

2004-08-03 Thread Peter Wieland
Hi all, we have a problem with closed persistence brokers. Maybe it is selfmade. I just would like to have your opinion. First the symptoms: From time to time I get NullPointerExceptions in PersistenceBroker.getTopLevelClass() and PersistenceBroker.getClassDescriptor(Class clasz). Both are

Cache and Inheritance

2004-07-08 Thread Peter Wieland
Hi all, I just wrote the following mail to the user list. Here it is a second more time for two reasons: 1) I used a mail account not subscribed to the list, hence I do not know whether it will be accepted. 2) I just updated my App for use with OJB 1.0. The problem did not change. So forget about

AW: Cache and Inheritance

2004-07-08 Thread Peter Wieland
). Is there an easy way to get this fixed? Regards, Peter PS: While writing this mail, I felt like this belongs more to the developer list. Maybe we can continue discussion there. I sent a copy to both lists. -Ursprüngliche Nachricht- Von: Peter Wieland [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8

AW: AW: Cache and Inheritance

2004-07-08 Thread Peter Wieland
things left and right =/ -Brian On Jul 8, 2004, at 7:35 AM, Peter Wieland wrote: Hi again, I digged a little deeper. The problem occurs in fact, when a class is in more than one extent. In my example, Product implements two interfaces TextLinkable and ImageLinkable. I'm afraid this scenario

What does this exception mean

2004-04-17 Thread Peter Wieland
Hi folks, from time to time I get the following exception querying my db. I have no idea what this means. Executing the same query a few seconds later (just by clicking the button that triggers the query one more time) passes without any problems. Caused by:

AXgen 2.1 released

2004-04-02 Thread Peter Wieland
Hi everyone, it may interest you, especially those of you that are already using AXgen for generation of OJB artefacts, that a new AXgen release (AXgen 2.1) is available for download at http://axgen.sourceforge.net. Changes in new version: - enhanced OJB templates - completely new

Re: Unique key constraint violations with M-to-N Mapping

2004-03-08 Thread Peter Wieland
Once again me, I want to propose a patch for the proble described below. As I tried to describe, the fact, that a object is newly created does not imply that there are no entries in a m-to-n-indirection-table in the db. Consequently I propose to replace the following code in

Unique key constraint violations with M-to-N Mapping

2004-03-07 Thread Peter Wieland
Hi all, since I updated from rc4 to CVS HEAD (friday afternoon) I have problems using non decomposed M-to-N relations. In the following scenario, I get unique key constraint violations in the indirection table: Let's say, we have the following: Person(0..*)(0..*)Project I create a new

Problem deploying application in JBoss

2004-03-05 Thread Peter Wieland
Hi, just a small question related to OJB and JBoss. I am trying to change from OJB rc4 to the lates version froom CVS. Things seem to work well on the client side, but I have difficulties on the server side. Deployment of my application fails with due to missing classes

Re: Extent

2004-02-29 Thread Peter Wieland
Hi Dirk, I'm not sure whether I understood your problem. Maybe I can help anyway... First, I'm not sure whether you really need to declare the extents for all your classes. Wouldn't it be sufficient to simply have all model classes having the same superclass BaseClass. If this is the case,

Re: AW: Extent

2004-02-29 Thread Peter Wieland
Hi Dirk, sorry, no idea how to use this with XDoclet. I pass on the question to the community. We use AXgen to generate everything based on an UML metamodel... Peter Hi Peter, my first repository-user.xml does not contain the extent concept at all. I simply did not set up a

Fw: Problem with inheritance mapping

2004-02-18 Thread Peter Wieland
again, Peter --- HIER BEGINNT DIE WEITERGELEITETE NACHRICHT -- Von: [EMAIL PROTECTED] (Peter Wieland) Datum: 16.02.2004, 17:29:33 Betreff: Problem with inheritance mapping Hi everyone, I have two entity classes AddressImpl and PersonAddressImpl, PersonAddressImpl

Re: Observers

2004-02-18 Thread Peter Wieland
You may register implementations of PBLifecycleListener with your PersitenceBroker Regards, Peter Folks, Is there any way to use observers in OJB so that they will be notified on an Object update/insert ? Thanks - To

PBLifecycleListener on any PersistanceBroker instance

2004-01-19 Thread Peter Wieland
Hi there, I've got the following problem: I implemented a PBLifecycleListener to do some initialization after objects were looked up. Everything works well as long as I use the persistence broker I created myself and I registered the listener with. But it does not work with proxies. When OJB

Re: AXgen and OJB and DDL

2004-01-14 Thread Peter Wieland
field-descriptor column=traLockTimestamp jdbc-type=TIMESTAMP name=lockTimestamp/ field-descriptor column=traLockUser jdbc-type=VARCHAR name=lockUser/ field-descriptor column=traLastModified jdbc-type=TIMESTAMP name=lastModified/ field-descriptor column=traLastModifier jdbc-type=VARCHAR

Re: AXgen and OJB and DDL

2004-01-12 Thread Peter Wieland
Hi Larry, I'm not sure wether I can help you but at least I can explain you how AXgen makes sure the DDL will meet the needs of OJB. Both, the OJB repository.xml and the DDL are generated based on the same UML model (the XMI). The templates make sure that the table definitions in the DDL and the

Re: inheritance problem

2003-12-16 Thread Peter Wieland
Hi, I had a similar problem. You may want to have a look at the Problem mapping inheritance hierarchy using joined tables for subclasses thread on this list (last post 2003-12-05) or at the Extents and the various inheritance hierarchy mappings thread at the dev-list. I do not think, this is

Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Hi, I try to map two classes Address and PersonAddress (a subclass of Address) using the joined table per sublcass strategy. This is my mapping: class-descriptor class=de.armax.sandbox.entity.Address table=Address field-descriptor autoincrement=true primarykey=true column=adrOID

Re:Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Hi, once again me, I tried to understand your past posts, but I'm afraid I didn't. I found a thread Inheritance delete but I think I am missing some posts and hence I do not understand the answers. I'll repost my problem trying to be a little more explicit this time. The tables: CREATE

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Well, that's what I tried resulting in a StackOverflow error. I guess it has to do with the auto-update, auto-delete and auto-retrieve attributes of the super reference-descriptor in the subclass. Could anyone tell what settings for those attribute are needed/possible for a correct mapping of

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Try refresh=false on the super reference. Does not work either. I tried refresh=false auto-retrieve=false auto-delete=false auto-update=false on the super reference. But I stell get the StackOverflowError when querying:

Re: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
hi peter, you could try to define an extent in classdescriptor of Address pointing to PersonAddress. BUT the problem is that extents and super-references do not go together well. you may end up with instances of the wrong class. the support for mapping one class to multiple tables needs