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 =
-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
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
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
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
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
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
).
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
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
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:
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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:
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
27 matches
Mail list logo