Mapping question

2003-11-27 Thread Norbert . Woegerbauer
Hi, I've got a 1:n mapping from table A to table B. But the foreign key field of table A is not it's primary key. I can't find how to tell OJB to use another field to join table B. Thanks for help, Norbert. - To unsubscribe, e

RE: Mapping question

2003-11-27 Thread Norbert . Woegerbauer
=mykey column=mycolumn jdbc-type=INTEGER/ Here mykey is the foreignkey but not a primary key ! OJB generates statements where mykey points to the pk of class A. The generated join looks like: A.pk = B.mykey We need: A.anyField = B.mykey In fact I think we've a m:n mapping without intermediary table

non-decomposed mapping and deletions in ODMG

2003-11-19 Thread Weaver, Scott
I have a non-decomposed relationship between object A and B. Using ODMG, if I remove a B from the collection of B's in A and commit, not only is the relationship entry in the indirection table deleted but so is B's record. Is there anyway to turn this off as auto-delete=false has no effect.

RE: non-decomposed mapping and deletions in ODMG

2003-11-19 Thread Guerrero, Axel
, 2003 1:41 PM To: 'OJB Users List' Subject: non-decomposed mapping and deletions in ODMG I have a non-decomposed relationship between object A and B. Using ODMG, if I remove a B from the collection of B's in A and commit, not only is the relationship entry in the indirection table deleted but so

Re: Mapping association in one table

2003-11-14 Thread Rmi Bars
Thank it works fine remi - Original Message - From: Nick Ohanian [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 7:36 PM Subject: Re: Mapping association in one table Hi- I'm a little new at OJB, but I think it's possible. Take a look

Re: Mapping association in one table

2003-11-13 Thread Nick Ohanian
Hi- I'm a little new at OJB, but I think it's possible. Take a look at the section on nested objects at http://db.apache.org/ojb/tutorial3.html#nested%20objects, specifically the class-descriptor listed in that section. Your repository.xml should something like class-descriptor class=A table=A

wrong mapping in postgre

2003-11-10 Thread Ramon Cano Granizo
[], perhaps i'm making a wrong mapping?? Anyone knows a better way? Thanks

RE: wrong mapping in postgre

2003-11-10 Thread Gelhar, Wallace Joseph
mapping in postgre Hello, i'm trying insert a blob record in postgreSQL, but every time i get an SQLException, UnknownType. The repository_user.xml looks like field-descriptor name=resource column=resource jdbc-type=BLOB / In the class, it's mapped like

m:n mapping, referential integrity

2003-11-09 Thread Gunnar Hilling
Hello, I just tried m:n anonymous mapping, using xdoclet generated descriptors. Seems to work fine except it's possible to delete from object from one side of the relation whithout cascading or foreign key constraint being thrown althoug this is definetly a violation of the DB-Rules

Re: Is it possible to have the any type mapping as Hibernate?

2003-11-07 Thread Thomas Mahler
Hi Rice, Rice Yeh wrote: Hi Thomas, I am not familiar with ODMG but I will go to study it. One question needs your help, is it meant that in the mapping file for this DListImpl I do not need to configure the attribute element-class-ref for collection-descriptor tag? That's correct! If a class

RE: Is it possible to have the any type mapping as Hibernate?

2003-11-06 Thread Rice Yeh
Hi Archie, I will try to come out all the files needed to be modified in order to support interface traversing in nested field mapping and send it to your email address. The basic idea is that I introduce a new attribute called class-path to configure the concrete classes for abstract class

Re: Simple performance improvement Re: m:n relations mapping...

2003-11-06 Thread Jakob Braeuchi
times faster. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 5:06 AM Subject: RE: Simple performance improvement Re: m:n relations mapping... Hello Andy, I will have a look at it when I have time. Please post

RE: Simple performance improvement Re: m:n relations mapping...

2003-11-04 Thread oliver . matz
: Simple performance improvement Re: m:n relations mapping... Excellent. Now how about going one step further and eliminating extra SELECT ? :-))) We do not need to retrieve link table entries in case of new objects. Class: org.apache.ojb.broker.core.PersistenceBrokerImpl: Method

RE: tool for generating mapping file and persistent classes

2003-11-04 Thread Naveen Singh
PROTECTED] Sent: Monday, November 03, 2003 8:11 PM To: [EMAIL PROTECTED] Subject: Re: tool for generating mapping file and persistent classes Naveen Singh dijo: Hi, I am new to OJB. I have a database from which I want to generate mapping file( repository.xml) and the persistent java classes. I found 2

RE: Is it possible to have the any type mapping as Hibernate?

2003-11-04 Thread Archie
with a feild's class stored in a row, it is possible to implement ploymorphic. With serializable object stored as binary, much informatin is lost for doing query (for example, I just want query elements with some specific class in a containing object). Am I right? Another issue I met in mapping

Re: Simple performance improvement Re: m:n relations mapping...

2003-11-04 Thread Andy Malakov
performance improvement Re: m:n relations mapping... Hello Andy, I will have a look at it when I have time. Please post messages like this to the OJB users' or developers' list. Thank you, Olli -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Friday

Re: Is it possible to have the any type mapping as Hibernate?

2003-11-03 Thread Archie
Hi, Yes, I agree your statement. I like OJB, but sometimes I feel OJB does not continue enhanceing its mapping capability. Hibernate does have better mapping capability. Since the introduction of anonymous field into OJB which I quite like it, OJB does not improve mapping capability much. Maybe

tool for generating mapping file and persistent classes

2003-11-03 Thread Naveen Singh
Hi, I am new to OJB. I have a database from which I want to generate mapping file( repository.xml) and the persistent java classes. I found 2 tools mentioned at OJB site. One is reverse-db and other Eclipse plugin. I tried both. In the reverse-db tool everything is fine, except, I cannot

Re: Is it possible to have the any type mapping as Hibernate?

2003-11-03 Thread Jakob Braeuchi
mapping capability. Hibernate does have better mapping capability. Since the introduction of anonymous field into OJB which I quite like it, OJB does not improve mapping capability much. Maybe too much effort is taken on JDO implementation. But since JDO 1.0 itself does not regulate much

Re: tool for generating mapping file and persistent classes

2003-11-03 Thread Antonio Gallardo
Naveen Singh dijo: Hi, I am new to OJB. I have a database from which I want to generate mapping file( repository.xml) and the persistent java classes. I found 2 tools mentioned at OJB site. One is reverse-db and other Eclipse plugin. Try druid - http://druid.sf.net/ But download it from

Re: o/r mapping question

2003-11-03 Thread sclark
Natural Resources Research Center/USGS [EMAIL PROTECTED] (970)226-9291 List-Id: OJB Users List ojb-user.db.apache.org Subject: o/r mapping question Date: Thu, 30 Oct 2003 21:14:16 -0500 Thread-Topic: o/r mapping question From: Robert J Celestino [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED

Is it possible to have the any type mapping as Hibernate?

2003-11-02 Thread Rice Yeh
Hi, I have been using OJB for some period. I am taking a project left by a partner that uses Hinbernate for persistence. So I start studying Hibernate. Hibernate has a mapping function called any type mapping that is defined as the follows: The any mapping element defines a polymorphic

Re: RE: Another silly newbie mapping question

2003-11-02 Thread jeichels
Still no clue on what is wrong with this. - Original Message - From: [EMAIL PROTECTED] Date: Friday, October 31, 2003 3:19 pm Subject: Re: RE: Another silly newbie mapping question Thank you Robert, but Offers are permanent pieces of information in the database whereas OrderItems

Re: RE: Another silly newbie mapping question

2003-11-02 Thread jeichels
and I want to understand this just for the sake of understanding. JohnE - Original Message - From: [EMAIL PROTECTED] Date: Sunday, November 2, 2003 5:24 pm Subject: Re: RE: Another silly newbie mapping question Still no clue on what is wrong with this. - Original Message

Another silly newbie mapping question

2003-10-31 Thread jeichels
I have worked out much harder mapping problems then this, but for some reason I am still a bit new on this stuff and making no headway. I would appreciate a more seasoned glance. Problem: OfferVO is not being materialized after succesfully retrieving the Collection of OrderItemVO by using

RE: Simple performance improvement Re: m:n relations mapping...

2003-10-31 Thread oliver . matz
Hello, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I am uncertain whether we should fix it because it does mean a (very minor) change of behaviour. I tend to 'yes'. I have just committed a fix. Olli

Re: Another silly newbie mapping question

2003-10-31 Thread jeichels
implementation. From the archives it seemed ok to map multiple primary keys to one primary key. - Original Message - From: [EMAIL PROTECTED] Date: Friday, October 31, 2003 2:49 am Subject: Re: Another silly newbie mapping question Still no luck. I noticed that my primary key order might

RE: Another silly newbie mapping question

2003-10-31 Thread Robert J Celestino
silly newbie mapping question I give up for the night. BTW I am using Release Candidate 2. Not sure it matters, but I am using PersistentFieldClass=org.apache.ojb.broker.metadata.fieldacc ess.PersistentNestedFieldMaxPerformanceImpl so that I could use '-' Single Table

Mapping a hashmap?

2003-10-31 Thread Robert J Celestino
Potentially stupid question, but I could not find anything on mapping a hashmap/hashtable. Consider this Item has an ItemPrice. ItemPrice contains a HashMap of condition/price pairs. So you can do stuff like: anItemPrice.getPriceForCondition( Good

Re: More 1:0..1 optional mapping trouble

2003-10-31 Thread Edson Carlos Ericksson Richter
: More 1:0..1 optional mapping trouble Hi! Now, if I update an object that hasn't the 1:1 optional mapping, ojb is always inserting a new object!!! Presently there are two serious bugs in 1:1 optional mappings: 1) If using proxies, and the optional side is NULL, it don't return true if comparing

mapping many classes to one table

2003-10-31 Thread David Corbin
I have a class heirarchy, and there are 30 different concrete classes in it. There is NO difference in the data, just in behavior. I'm well aware of how to read these in from a common table using a RowReader. Do I have to write 30 class-descriptors all of which look exactly the same except

Re: More 1:0..1 optional mapping trouble

2003-10-31 Thread Armin Waibel
in main object, all came to expected. Edson Richter - Original Message - From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Friday, October 31, 2003 3:43 PM Subject: More 1:0..1 optional mapping trouble Hi! Now, if I update an object that hasn't the 1:1 optional mapping, ojb

Re: mapping many classes to one table

2003-10-31 Thread Jakob Braeuchi
hi david, why don't you use ojbConcreteClass ? David Corbin wrote: I have a class heirarchy, and there are 30 different concrete classes in it. There is NO difference in the data, just in behavior. I'm well aware of how to read these in from a common table using a RowReader. Do I have to

Re: mapping many classes to one table

2003-10-31 Thread David Corbin
On Friday 31 October 2003 14:11, Jakob Braeuchi wrote: hi david, why don't you use ojbConcreteClass ? I don't understand. I fully plan on having something like this so I can materialize the correct type object. That has little (as far as I can tell) to do with my problem. As far as I can

Re: mapping many classes to one table

2003-10-31 Thread Jakob Braeuchi
hi david, David Corbin wrote: On Friday 31 October 2003 14:11, Jakob Braeuchi wrote: hi david, why don't you use ojbConcreteClass ? I don't understand. I fully plan on having something like this so I can materialize the correct type object. That has little (as far as I can tell) well

RE: mapping many classes to one table

2003-10-31 Thread Robert J Celestino
- From: David Corbin [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:37 PM To: OJB Users List; Jakob Braeuchi Subject: Re: mapping many classes to one table On Friday 31 October 2003 14:11, Jakob Braeuchi wrote: hi david, why don't you use

Re: mapping many classes to one table

2003-10-31 Thread Jakob Braeuchi
and Development 919 - 531 - 9425 [EMAIL PROTECTED] SAS - The Power to Know -Original Message- From: David Corbin [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:37 PM To: OJB Users List; Jakob Braeuchi Subject: Re: mapping many classes to one table On Friday

Re: RE: Another silly newbie mapping question

2003-10-31 Thread jeichels
plum out of them. JohnE - Original Message - From: Robert J Celestino [EMAIL PROTECTED] Date: Friday, October 31, 2003 10:11 am Subject: RE: Another silly newbie mapping question Hello John, I think you want auto-update=true instead of false here: reference

Re: mapping many classes to one table

2003-10-31 Thread David Corbin
to Know -Original Message- From: David Corbin [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:37 PM To: OJB Users List; Jakob Braeuchi Subject: Re: mapping many classes to one table On Friday 31 October 2003 14:11, Jakob Braeuchi wrote: hi

RE: mapping many classes to one table

2003-10-31 Thread Plummer, Greg
: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 1:48 PM To: OJB Users List Subject: Re: mapping many classes to one table hi, Robert J Celestino wrote: David, I believe that you must write 30 class descriptors all exactly the same except for the class name :-( I have

Re: More 1:0..1 optional mapping trouble

2003-10-31 Thread Edson Carlos Ericksson Richter
Users List Sent: Friday, October 31, 2003 3:10 PM Subject: Re: More 1:0..1 optional mapping trouble Hi Edson, could you write a test case/cases showing the problems? Maybe you could use ReferenceTest in test suite as starting point. regards, Armin Edson Carlos Ericksson Richter wrote: Actually

Re: mapping many classes to one table

2003-10-31 Thread Jakob Braeuchi
- 9425 [EMAIL PROTECTED] SAS - The Power to Know -Original Message- From: David Corbin [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:37 PM To: OJB Users List; Jakob Braeuchi Subject: Re: mapping many classes to one table On Friday 31 October 2003 14:11, Jakob

RE: Simple performance improvement Re: m:n relations mapping...

2003-10-30 Thread oliver . matz
Hello, -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Problem: Right after insert, PersistenceBrokerImpl calls storeCollections () method that performs redundant DELETE FROM... operation. The problem has been mentioned by myself in the developer list together wit

o/r mapping question

2003-10-30 Thread Robert J Celestino
Hello all, I am stumped by what is posibly a very simple mapping problem. Consider something like this Person is stored in the person table Person has-a AddressGroup. AddressGroup is not stored in the DB AddressGroup has a list of Addresses Address is stored

RE: o/r mapping question

2003-10-30 Thread Lance Eason
Message- From: Robert J Celestino [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 8:14 PM To: OJB Users List Subject: o/r mapping question Hello all, I am stumped by what is posibly a very simple mapping problem. Consider something like this Person is stored in the person

Re: o/r mapping question

2003-10-30 Thread Brian McCallister
, October 30, 2003, at 09:14 PM, Robert J Celestino wrote: Hello all, I am stumped by what is posibly a very simple mapping problem. Consider something like this Person is stored in the person table Person has-a AddressGroup. AddressGroup is not stored in the DB AddressGroup has

Re: N same class mapping question...

2003-10-29 Thread Oleg Nitz
; } } - The mapping: class-descriptor class=org.skife.kim.model.User table=USERS field-descriptor name=id column=ID jdbc-type=INTEGER primarykey=true autoincrement=true/ field-descriptor name=handle column=HANDLE jdbc-type=VARCHAR/ field-descriptor name=password column

Mapping byte or tinyint(1) to boolean

2003-10-29 Thread Yassine Lajmi
Hi all, In my db table i have a tinyint(1) column. can i map it to a boolean or Boolean attribute in my java bean ? thank's - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Mapping byte or tinyint(1) to boolean

2003-10-29 Thread Armin Waibel
Hi, Yassine Lajmi wrote: Hi all, In my db table i have a tinyint(1) column. can i map it to a boolean or Boolean attribute in my java bean ? yes, see http://db.apache.org/ojb/jdbc-types.html field conversion. There are many FieldConversion implementations shipped with OJB. (e.g.

Simple performance improvement Re: m:n relations mapping...

2003-10-29 Thread Andy Malakov
Hello All, UseCase: PersistenceBroker stores NEW object that has non-decomposed m:n relationship field. Problem: Right after insert, PersistenceBrokerImpl calls storeCollections () method that performs redundant DELETE FROM... operation. Solution: It should be possible to pass current

Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-23 Thread Gerhard Grosse
Hi Mitch, Yes, it would. If you use the mapping variant I suggested, you would need two queries, one for User.class and one for Driver.class, and combine the results. If a Person is a User and a Driver, you would get two objects, but both referring to the same Person object. (In other words

mapping

2003-10-23 Thread Reitsam Andreas
Hello. I tried to map multiple inteface inheritance like this: !-- Interface Preis -- class-descriptor class=de.sigel.business.mvgl.bo.Preis extent-class calss-ref=de.sigel.business.mvgl.bo.MitbewerbervergleichPreis/ extent-class

RE: mapping

2003-10-23 Thread Charles Anthony
-User (E-Mail) Subject: mapping Hello. I tried to map multiple inteface inheritance like this: !-- Interface Preis -- class-descriptor class=de.sigel.business.mvgl.bo.Preis extent-class calss-ref=de.sigel.business.mvgl.bo.MitbewerbervergleichPreis/ extent-class

Rollback with Inheritance mapping...

2003-10-23 Thread Thomas Maby
I'm having some trouble using the PersistenceBroker to perform rollback on an object mapped with a simple inheritance hierarchy. Here's how my classes are configured: public class TNObject { private Integer id; private String comment; // (setters and getters) } public class

mapping problem or something VERY wierd...

2003-10-23 Thread Andy Czerwonka
I've got a simple 1..n association and I'm doing something like this...(pardon the syntax... just trying to make a point) Parent parent = new Parent() Child c1 = new Child(parent); Child c2 = new Child(parent); parent.getChildren.add(c1); parent.getChildren.add(c2); broker.store(parent);

Re: mapping problem or something VERY wierd...

2003-10-23 Thread Andy Czerwonka
In looking at the SQL, and update is done when I do the store.. hey I think the PK is NOT unique... yup - it's not unique... that's gotta be the problem... On Thu, 2003-10-23 at 16:07, Andy Czerwonka wrote: I've got a simple 1..n association and I'm doing something like this...(pardon the

Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-22 Thread Gerhard Grosse
doesn't know about B, which declares the Person reference, you would need to use PersistentFieldIntrospectorImpl as PersistentField class in OJB.properties. You could also stick to PersistentFieldDirectAccessImpl, but then you have to explicitly map class B and use inheritance mapping for User

RE: non-decomposed m:n mapping deleting incorrectly

2003-10-22 Thread Andy Malakov
Hello, From: oliver . matz It just seems odd that by removing an item from a collection that it performs a delete on the object that is in the collection. This is the behaviour of org.apache.ojb.broker.util.collections.RemovalAwareCollection, which is the default collection-class. You can

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Matt Mastrangelo
Hi Gerhard, I'm not saying the B1 and B2 instances should extend the same instance of A, but that they should be materialized from the same A record in the database. B1 and B2 would have to be different objects obviously. I think this could be quite possible in OJB. But let me ask the

RE: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Mitch Norby
I know it is possible when A and B1 are mapped to one table. Not sure about when they are mapped to two tables. I would hope both would work since the only difference is in the mapping layer. When they are mapped to one table... 1) Grab the A instance. 2) Create an instance of B1 and copy all

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Gerhard Grosse
On Tue, 21 Oct 2003 09:45:29 -0400, Matt Mastrangelo [EMAIL PROTECTED] wrote: Hi Matt, Hi Gerhard, I'm not saying the B1 and B2 instances should extend the same instance of A, but that they should be materialized from the same A record in the database. B1 and B2 would have to be different

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Christopher C. Worley
Matt, Here is what i suggest you do, if this fits your requirments. In this example Student extends Person and Person has a 1:M relationship with UserLogin. You can change it to 1:1 relation ship by makeint UserLogin.personId the PK instead of UserLogin.userLoginId. This way all people can

Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-21 Thread Gerhard Grosse
know. Later. Mitch -Original Message- From: Gerhard Grosse [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 6:55 AM To: [EMAIL PROTECTED] Subject: Re: Inheritance mapping, storing new object associated with pre-existingsuper object Hi Matt, Excuse me to jump in here, but I

RE: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-21 Thread Mitch Norby
Grosse [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 9:50 AM To: [EMAIL PROTECTED] Subject: Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object On Tue, 21 Oct 2003 08:55:02 -0500, Mitch Norby [EMAIL PROTECTED] wrote: Hi Mitch, How would you model

problem mapping differnent object to one table

2003-10-21 Thread Christopher Tava
has anyone been successfully mapping two objects to the same table?? to be more specific, i would like distinct object instances for objectAId and distinct object instances for objectBId in seperate queries. select distinct objectA_id from tableAB; select distinct objectB_id from

RE: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-20 Thread Vincenz Braun
? Thanks, Vincenz -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 4:45 PM To: OJB Users List Subject: Re: Problem with anonymous keys in 1:n back-mapping (again) hi vincenz, the main difference is that you use anonymous

Inheritance mapping, storing new object associated with pre-existing super object

2003-10-20 Thread Matt Mastrangelo
I'm trying to figure out how to store a new persisted object that extends a pre-existing object. For example, I have 3 classes: Person, Student, and User. Student and User extend Person. A Student object already exists, and I now want to create a User object that inherits from the same

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-20 Thread Matt Mastrangelo
Chris, Just to clarify -- are you saying it's not possible to create the User instance without also creating a new Person instance? Maybe my example was not too clear. Let me re-explain: I have a base class A with two subclasses, B1 and B2. I have already created an instance of B1 and

m:n relations mapping...

2003-10-16 Thread Hiu Yen Onn
how can i make a m:n mapping...? can u pls how??? i have been trying m:n decomposition method...but, the intermediary table is not persisted any data... actually, the data is persisted into the intermediary table, but then, it was deleted.. pls show the way to do it thanks

RE: m:n relations mapping...

2003-10-16 Thread Gerhard . Grosse
relations mapping... how can i make a m:n mapping...? can u pls how??? i have been trying m:n decomposition method...but, the intermediary table is not persisted any data... actually, the data is persisted into the intermediary table, but then, it was deleted.. pls show the way to do it thanks

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-16 Thread Jakob Braeuchi
13, 2003 8:42 PM To: OJB Users List Subject: Re: Problem with anonymous keys in 1:n back-mapping (again) hi vincent, just to make it clear the attribute 'userId' is null because access is anonymous and no attribute is required in your class. the attribute 'user' should contain an instance

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-15 Thread Jakob Braeuchi
: Problem with anonymous keys in 1:n back-mapping (again) hi vincent, just to make it clear the attribute 'userId' is null because access is anonymous and no attribute is required in your class. the attribute 'user' should contain an instance of object User. i do have a testcase for this feature

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Gerhard . Grosse
: Re: Problem with anonymous keys in 1:n back-mapping (again) hi vincent, just to make it clear the attribute 'userId' is null because access is anonymous and no attribute is required in your class. the attribute 'user' should contain an instance of object User. i do have a testcase

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Jakob Braeuchi
20:42 Bitte antworten an OJB Users List An: OJB Users List [EMAIL PROTECTED] Kopie: Thema: Re: Problem with anonymous keys in 1:n back-mapping (again) hi vincent, just to make it clear the attribute 'userId' is null because access is anonymous and no attribute

Antwort: Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Gerhard . Grosse
An: OJB Users List [EMAIL PROTECTED] Kopie: Thema: Re: Problem with anonymous keys in 1:n back-mapping (again) hi gerhard, yup, it also works with proxy=false. do you use the latest from repository ? jakob [EMAIL PROTECTED] wrote: Hi Jakob, It was the attribute 'user

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
=) -Brian On Tuesday, October 14, 2003, at 08:42 AM, [EMAIL PROTECTED] wrote: Hello Brian, -Original Message- class-descriptor class=test.User table=USERS [..] -- Schema Def'n -- table name=user_friend description=M:N mapping table for user's friends [..] foreign-key

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hej Brian, -Original Message- From: Brian McCallister [mailto:[EMAIL PROTECTED] I have mixed and matched the value, but it hasn't mattered. I had thought it might care so I tried various combinations. It in this vase being a nebulous entity who thwarts my plans, as to my

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
; } public void setLastName(String lastName) { this.lastName = lastName; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } } - The mapping

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hello Brian, -Original Message- From: Brian McCallister [mailto:[EMAIL PROTECTED] Which concrete class is instantiated for the list field? Default - I don't specify anything so should be a Vector. I bet this is the problem. You'd probably better use one of the managed

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
On Tuesday, October 14, 2003, at 10:29 AM, [EMAIL PROTECTED] wrote: I bet this is the problem. You'd probably better use one of the managed collections. Could you please check by outputting xxx.getClass().getName() somewhere? On retrieved collections it uses:

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
Follow up.. Changing the OTM Test to use PB style QueryByCriteria also fails: public void testRequestFriendOTMTwo() throws Exception { OTMConnection conn = SimpleKit.getInstance().acquireConnection(PersistenceBrokerFactory.getDe faultKey());

RE: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Vincenz Braun
with anonymous keys in 1:n back-mapping (again) hi vincent, just to make it clear the attribute 'userId' is null because access is anonymous and no attribute is required in your class. the attribute 'user' should contain an instance of object User. i do have a testcase for this feature

M:N relations mapping problems.....

2003-10-14 Thread Hiu Yen Onn
hello, i am new to OJB. i hope i can help some helps from here... my problem is as followed: i want to make a M:N relational mapping between two tables User and Role. so my repository-user.xml is such followed class-descriptor class=my.com.shinyang.eply.model.User table=USERS

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-13 Thread Brian McCallister
I am looking into it. I presume you are using the PB api based on the auto-* being set. I have an almost identical mapping that works fine, but am using the OTM... I'll play with it against the PB tonight with the auto-* set they way you do and see what I can find. If there is no bug open

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-13 Thread Jakob Braeuchi
hi vincent, just to make it clear the attribute 'userId' is null because access is anonymous and no attribute is required in your class. the attribute 'user' should contain an instance of object User. i do have a testcase for this feature and it works. class-descriptor

Problem with anonymous keys in 1:n back-mapping (again)

2003-10-12 Thread Vincenz Braun
Hello, I have the same problem described earlier in this list by Gerhard Grosse. What is the status of this issue? Is someone working on this or has at least committed a bug report? I queried scarab and did not find a matching issue, yet. Any help greatly appreciated. Vincenz original post

M:N same class mapping question...

2003-10-12 Thread Brian McCallister
I am having problems getting a class to properly persist collections of instances of the same class (see configs later in the email). Using the M:N mapping seems to be the way to do this, but it isn't actually working. If the relations exist in the database the data loads fine, however

Re: M:N same class mapping question...

2003-10-12 Thread Brian McCallister
(see configs later in the email). Using the M:N mapping seems to be the way to do this, but it isn't actually working. If the relations exist in the database the data loads fine, however it doesn't seem to want to persist new instances to the M:N table. I am using the non-decomposed style M:N

Problem with anonymous keys in 1:n back-mapping (again)

2003-10-12 Thread Vincenz Braun
Hello, I have the same problem described earlier in this list by Gerhard Grosse. What is the status of this issue? Is someone working on this or has at least committed a bug report? I queried scarab and did not find a matching issue, yet. Any help greatly appreciated. Vincenz original post

Mapping classes on the same table

2003-10-08 Thread Philippe Hacquin
Hi all, I would like to report some problems I had to map two sister classes on the same table, and make sure I am not doing anything wrong. I am using the ODMG API, OJB RC4 with j2sdk1.4.1_01 on windows, and MySQL 4. I followed the Advanced O/R tutorial, chapter Mapping all classes

Re: Proxy / 1:1-Mapping

2003-09-30 Thread Joerg Lensing
Problem solved! problem with classpath for rc4 - still rc3-jars were active - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

1:1-Mapping

2003-09-30 Thread Rémi Bars
Hi all i m trying to do a 1:1 mapping on rc4 with the xml file at the end when i try to store a Catalogue i get this error : Thanks for ur help org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.PersistenceBrokerException

Antwort: 1:1-Mapping

2003-09-30 Thread Gerhard . Grosse
. HTH Gerhard Rémi Bars [EMAIL PROTECTED] 30.09.2003 15:25 Bitte antworten an OJB Users List An: OJB Users List [EMAIL PROTECTED] Kopie: Thema: 1:1-Mapping Hi all i m trying to do a 1:1 mapping on rc4 with the xml file at the end when i try to store

Re: 1:1-Mapping

2003-09-30 Thread Rémi Bars
i only use integer in my repository.xml, and i use int in my classes - Original Message - From: [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:28 PM Subject: Re: 1:1-Mapping Have you tried using int, instead of Integer? - Original

Re: Antwort: 1:1-Mapping

2003-09-30 Thread Rémi Bars
ok thanks it s working now remi - Original Message - From: [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:47 PM Subject: Antwort: 1:1-Mapping The problem is that your field descriptor and reference descriptor have the same name attributes

Proxy / 1:1-Mapping

2003-09-29 Thread Joerg Lensing
Hi all, up to now, I used complete object for references and all worked fine. Now I try to use a proxy for a reference (version: rc4). The mapping is: class-descriptor class=de.softcon.webcontrol.business.model.OrganisationPO table=tpartner field-descriptor name=id column=foid jdbc

Re: Problem with byte[] to bytea mapping

2003-09-18 Thread Christian Pesch
Björn Voigt wrote: If I store the object to database and get it back, the length of the byte[] is bigger than the original length. Did you compare the original value and the written one? May be that gives a hint. - To

Re: Problem with byte[] to bytea mapping

2003-09-18 Thread Björn Voigt
Christian Pesch schrieb: Björn Voigt wrote: If I store the object to database and get it back, the length of the byte[] is bigger than the original length. Did you compare the original value and the written one? May be that gives a hint. Hi Christian, here are the sample files I use, test1.jpg

Problem with 1 to N mapping when retrieving into an ArrayList with ODMG API

2003-09-17 Thread gfaerman
Hi all, We are using ODMG Api. When trying to retrieve a person, who has documents collection (Documents as an ArrayList), OJB fails saying it needs a org.apache.ojb.broker.util.collections.RemovalAwareCollection (pls see error below) It seems we should use a RemovalAwareCollection, or a

Re: Problem with 1 to N mapping when retrieving into an ArrayList with ODMG API

2003-09-17 Thread SS_ZABIULLAH
] cc: Subject:Problem with 1 to N mapping when retrieving into an ArrayList with ODMG API Hi all, We are using ODMG Api. When trying to retrieve a person, who has documents collection (Documents as an ArrayList), OJB fails saying it needs

<    1   2   3   4   5   6   >