Problem with byte[] to bytea mapping

2003-09-17 Thread Björn Voigt
Hi Obj_friends, I have problems with mapping of an image to an postgresql database. A byte[] attribute holds my image data. The column type is bytea. The mapping look like: class-descriptor class=de.mobiharz.model.media.Image table=images ... field-descriptor id=3

Re: Problem with mapping classes on multiple joined tables

2003-09-13 Thread Jakob Braeuchi
hi christof, have you tried auto-update=true ? the problem is imo that this must be false for odmg :( jakob Necro wrote: Jakob Braeuchi wrote: hi christof, this is a problem with your auto-update setting in the reference-desriptor pointing to the superclass. auto-update should be true.

Re: Problem with mapping classes on multiple joined tables

2003-09-13 Thread Necro
Jakob Braeuchi wrote: hi christof, hi, have you tried auto-update=true ? Yes i already set auto-update=true as you mentioned in your last mail. This made it possible to store objects of type B (the repository.xml is shown in one of my last mails). when auto-update is set to false, only parts

Re: Problem with mapping classes on multiple joined tables

2003-09-11 Thread Necro
Jakob Braeuchi wrote: hi christof, this is a problem with your auto-update setting in the reference-desriptor pointing to the superclass. auto-update should be true. Hi, thanks, now inserting a value works just fine. But now I got another problem. When I select an object of class B only

mapping small query objects (reposted)

2003-09-08 Thread Joerg Lensing
hi ojb-users, parallel to the normal persistent objects (mapping as ususal) I want to use small query objects to speed up performance. I'm expirienced some problems now. It seems to me, that OJB doesn't support this (commented source code says: ... may be null if extend isn't used.. or so

Re: non-decomposed m:n mapping deleting incorrectly

2003-09-08 Thread Chris Widhelm
: Thursday, September 04, 2003 4:21 PM Subject: non-decomposed m:n mapping deleting incorrectly I have a non-decomposed m:n mapping set up with an inderection table and for some reason when I call Collection.remove( Object ) it is deleting not only the mapping in the inderection table, but also

RE: non-decomposed m:n mapping deleting incorrectly

2003-09-08 Thread oliver . matz
Hello, -Original Message- From: Chris Widhelm [mailto:[EMAIL PROTECTED] 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

Re: non-decomposed m:n mapping deleting incorrectly

2003-09-08 Thread Michael Becke
Users List [EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:21 PM Subject: non-decomposed m:n mapping deleting incorrectly I have a non-decomposed m:n mapping set up with an inderection table and for some reason when I call Collection.remove( Object ) it is deleting not only the mapping

Re: non-decomposed m:n mapping deleting incorrectly

2003-09-08 Thread Edson Carlos Ericksson Richter
and then this should work fine. Edson Richter - Original Message - From: Chris Widhelm To: OJB Users List Sent: Monday, September 08, 2003 11:13 AM Subject: Re: non-decomposed m:n mapping deleting incorrectly Does anyone have any ideas on this? It just seems odd that by removing

Re: Problem with mapping classes on multiple joined tables

2003-09-05 Thread Necro
Jakob Braeuchi wrote: hi christof, have you tried the latest from repository. imo the path provided by kurt hoehn solves this problem. Thanks for that advice. Now the select statements seem to work. But there seems to be another problem. When I save an instance of class B, only the table b

Re: Problem with mapping classes on multiple joined tables

2003-09-05 Thread Jakob Braeuchi
hi christof, this is a problem with your auto-update setting in the reference-desriptor pointing to the superclass. auto-update should be true. hth jakob Necro wrote: Jakob Braeuchi wrote: hi christof, have you tried the latest from repository. imo the path provided by kurt hoehn solves

RE: O/R mapping: determine table at runtime?

2003-09-04 Thread oliver . matz
Hello Thomas, -Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] Suppose you have three class A, B, C. Suppose that both A and B have a collection of C. Suppose furthermore that every C instance is in exactly one of these collections. When I map this to a

Re: O/R mapping: determine table at runtime?

2003-09-04 Thread Thomas Mahler
Hi again On the logical level it does not matter if a foreign key to C comes from A or B. But in this case, I need a foreign key inside table C to table A or B, because classes A and B have a collection of C. It is like a 1-n relation from (A union B) to C. I think the most clean solution

Problem with mapping classes on multiple joined tables

2003-09-04 Thread Necro
Hi, I have got another problem. Let's say i have a class A and a subclass B and both implement interface C. class-descriptor class=C extent-class class-ref=B / /class-descriptor class-descriptor class=A extent-class class-ref=B / /class-descriptor class-descriptor class=A table=a

Re: Problem with mapping classes on multiple joined tables

2003-09-04 Thread Jakob Braeuchi
hi christof, have you tried the latest from repository. imo the path provided by kurt hoehn solves this problem. jakob Necro wrote: Hi, I have got another problem. Let's say i have a class A and a subclass B and both implement interface C. class-descriptor class=C extent-class class-ref=B /

O/R mapping: determine table at runtime?

2003-09-02 Thread oliver . matz
Hello, I have a question concerning advanced O/R-mapping. Suppose you have three class A, B, C. Suppose that both A and B have a collection of C. Suppose furthermore that every C instance is in exactly one of these collections. When I map this to a relational database, I might want to have

Newbie Problem 1:n Mapping

2003-09-02 Thread Roland Vecera
Hey! I'm using db-ojb-1.0.rc3.jar and have a curious problem with 1:n-Mapping! I'm working on two Relations task and thread; task includes an 1:n mapping to thread! Problem: When I try to get a Collection of all/some specific Objects from task, I get exactly one Object in the Collection

Help with mapping

2003-09-01 Thread Clay Mitchell
Ok, slightly odd thing I've got going here. I've got one table that has a list of products. These products can either be standalone products, and they can be add-on's for other products. So I've got a second table that just has 2 fields - product_id and parent_product_id that are referenced to

Re: Help with mapping

2003-09-01 Thread Roland Carlsson
- Original Message - From: Clay Mitchell [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Monday, September 01, 2003 9:53 PM Subject: Help with mapping Ok, slightly odd thing I've got going here. I've got one table that has a list of products. These products can either be standalone

Re: GUI Mapping Tool

2003-08-22 Thread Wayne Kidd
I am interested. I have done a little work with reversedb part of OJB. I am most interested in continuous synchronization (2-way) between database and OJB mapping. The initial work, I can get done with existing tools. There is, however, a problem trying to keep the repository current when

GUI Mapping Tool

2003-08-21 Thread Jean
Hi, I am developping a gui mapping tool for OJB since some time. I search some people interested to develop this tool with me. Developpers who know well OJB, the advanced OO concepts, design patterns, UML, Swing or have the motivation to develop this cool software are welcome. Let me know

Problem with anonymous keys in 1:n back-mapping

2003-08-14 Thread Gerhard . Grosse
Hi all, I tried to implement a bi-directional 1:n association between classes User and UserRole with an anonymous key in UserRole: class-descriptor class=de.lexcom.noralinkojb.model.User table=OJB.USERS field-descriptor name=id column=ID

M:N Mapping issue

2003-08-14 Thread Wayne Kidd
We are confused. We have a mapping that uses an indirection table. It appears that, in some cases, a retrieval of an object contains null for the collection field of the class, while in other cases, the collection field contains an empty collection (a collection whose size is 0

Read the repository mapping file from outside

2003-08-04 Thread Pushpaka Rambukkanage
hi all, I am a new comer to ojb world and I got some problem with the ojb mapping file reading. I need to read the repository.xml, repository_user.xml,.. files from a java code. it is to create a object hierarchy from the mappings and do some processing on them my problem is how the obj read

Re: Read the repository mapping file from outside

2003-08-04 Thread Danilo Tommasina
with the ojb mapping file reading. I need to read the repository.xml, repository_user.xml,.. files from a java code. it is to create a object hierarchy from the mappings and do some processing on them my problem is how the obj read the mapping files to get the configurations, then I can follow

Re: Read the repository mapping file from outside

2003-08-04 Thread Armin Waibel
DescriptorRepository readDescriptorRepository(InputStream inst) then merge results using one of the merge methods. HTH regards, Armin - Original Message - From: Pushpaka Rambukkanage [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:00 PM Subject: Read the repository mapping file from

1-1 association mapping each class on a distinct table

2003-08-01 Thread Peter Rajsky
hello, we would like to implement following 1-1 association: 1) class A references class B [A-B] 2) class B has 2 subclasses B1 and B2. B1 and B2 are mapped on distinct tables [t_b1 and t_b2]. 3) we don't have any synthetic OID, which contains class name - so values of our primary key attribute

Mapping inheritence

2003-08-01 Thread Sebastien Cesbron
Hi, I'am new to OJB and I am looking at the archive to have some info. I've seen that supporting inheritence of descriptors in mapping repository is on the way :am I wrong ? If this is true, what is the status of this functionality ? In the june posts leandro said that he did a patch. Do I

1:1 mapping

2003-08-01 Thread hal arnold
Folks, We have a simple parent-child relationship mapping with navigability in both directions (parent has association for child and vice-versa), with fk references in both repository descriptors pointing to the other. Everything seemed to be working (as far as autoupdate) except that today, we

Re: Mapping inheritence

2003-08-01 Thread Thomas Mahler
Hi Sebastien, Leandros patch is in RC4 already. cheers, Thomas Sebastien Cesbron wrote: Hi, I'am new to OJB and I am looking at the archive to have some info. I've seen that supporting inheritence of descriptors in mapping repository is on the way :am I wrong ? If this is true, what

Re: 1:1 mapping

2003-08-01 Thread Thomas Mahler
be inserted first! cheers, Thomas hal arnold wrote: Folks, We have a simple parent-child relationship mapping with navigability in both directions (parent has association for child and vice-versa), with fk references in both repository descriptors pointing to the other. Everything seemed

RE: 1:1 mapping

2003-08-01 Thread Hal Arnold
for the quick response, hba -Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 5:13 AM To: OJB Users List Subject: Re: 1:1 mapping Hi Hal, I think the problem is the bidirectional association. If you would simply use an unidirectional

RE: mapping 1:n association with anonymous - again

2003-07-30 Thread Reggie Hayes
I have tried the latest CVS release and the error still exists with anonymous tags. What class handles the mapping of the 1:n association? Reggie -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:23 PM To: OJB Users List Subject: Re: mapping

Re: mapping inheritance hierarchies????

2003-07-24 Thread Cesar
Sorry B extends A [ ]´s - Original Message - From: Cesar To: OJB Users List Sent: Thursday, July 24, 2003 4:03 PM Subject: mapping inheritance hierarchies People I have two tables(A and B) in my Database where A extends A How I make to map

Re: mapping inheritance hierarchies????

2003-07-24 Thread Armin Waibel
] Sent: Thursday, July 24, 2003 10:41 PM Subject: Re: mapping inheritance hierarchies Sorry B extends A [ ]´s - Original Message - From: Cesar To: OJB Users List Sent: Thursday, July 24, 2003 4:03 PM Subject: mapping inheritance hierarchies People I have two tables

RE: recursive child element mapping

2003-07-22 Thread Durham David Contr 805 CSS/SCBE
-Original Message- From: BURT, RANDALL (CONTRACTOR) [mailto:[EMAIL PROTECTED] You would need to add one more field-descriptor for the parentId field like so: field-descriptor id=3 name=parentId column=parentId jdbc-type=INTEGER/ ah, an oversight on my part ... makes sense.

RE: recursive child element mapping

2003-07-22 Thread BURT, RANDALL (CONTRACTOR)
Looks good so far, you'll know more once you test. -Original Message- From: Durham David Contr 805 CSS/SCBE [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 1:10 PM To: OJB Users List Subject: RE: recursive child element mapping -Original Message- From: BURT

Mapping unique constraints or alternate key - Please!

2003-07-21 Thread Sebastião Carlos Santos
with the example below, I was in doubt as for the mapping of the table: CREATE TABLE TEST_TABLE ( FIELD_A NUMBER NOT NULL, FIELD_B NUMBER NOT NULL, FIELD_C VARCHAR2(128) NOT NULL, FIELD_D DATE NOT NULL, CONSTRAINT TEST_TABLE_PK PRIMARY KEY(FIELD_A), CONSTRAINT TEST_TABLE_UN01 UNIQUE(FIELD_B

recursive child element mapping

2003-07-21 Thread Durham David Contr 805 CSS/SCBE
Here's my very data structure: categoryId - int name - varchar parentId - int parentId is a recursive reference to categoryId Does anyone know how I would set up the class-descriptor for the collection of children? Here's what I have: class-descriptor class=business.Category

AW: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-18 Thread Geigl Maximilian, R235
An: OJB Users List Betreff: Re: [MAPPING] MS SQL Server and DATETIME conversion I'm using a SimpleDateTimeFormat to format (cutting time part) and parse again into date. It's not elegant, but works. Edson Richter - Original Message - From: Geigl Maximilian, R235 [EMAIL PROTECTED

AW: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-17 Thread Geigl Maximilian, R235
: [MAPPING] MS SQL Server and DATETIME conversion I'm not sure, but I think you need a conversion: field-descriptor name=edatum conversion=org.apache.ojb.broker.accesslayer.conversions.Java Date2SqlTimest ampFieldConversion column=EDATUM jdbc-type=DATE

Re: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-17 Thread Edson Carlos Ericksson Richter
: [MAPPING] MS SQL Server and DATETIME conversion Hello Edson, i'm still struggling with my problem. Can you pleas tell me how you ensure not to deliver time part. Max -Ursprüngliche Nachricht- Von: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 15

[MAPPING] MS SQL Server and DATETIME conversion

2003-07-15 Thread Geigl Maximilian, R235
Hello, i use OJB 1.0 rc2, MS SQL Server 2000 on WIN2K with the MS JDBC driver and have a date field: field-descriptor name=edatum column=EDATUM jdbc-type=DATE / with the corresponding data type DATETIME in the datebase, which can stores date and time

Re: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-15 Thread Edson Carlos Ericksson Richter
Message - From: Geigl Maximilian, R235 [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:54 PM Subject: [MAPPING] MS SQL Server and DATETIME conversion Hello, i use OJB 1.0 rc2, MS SQL Server 2000 on WIN2K with the MS JDBC driver and have a date field

AW: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-15 Thread Geigl Maximilian, R235
for this. Anyway, thanks a lot. Regards Max -Ursprüngliche Nachricht- Von: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 15. Juli 2003 21:08 An: OJB Users List Betreff: Re: [MAPPING] MS SQL Server and DATETIME conversion I'm not sure, but I think

Re: mapping M:N relationship, with a twist

2003-07-13 Thread Matthias Laube
It looks like you should decompose your Category - Item relationship into 2 m:n relationships Category - LinkTable - Category Category - LinkTable - Item -- Matthias Laube [EMAIL PROTECTED] Ollie Rutherfurd wrote: Hi, I'm trying to setup an M:N mapping, however I can't follow the examples

RE: Where Do Stored Procedures Fit Into An O/R Mapping Layer?

2003-07-08 Thread BURT, RANDALL (CONTRACTOR)
Into An O/R Mapping Layer? Michael -- I'd appreciate any and all comments on this question. I've often wondered where stored procedures should fit in an object-oriented application. Thomas just checked in a how-to document (xdocs/how-to-work-with-stored-procedures.xml) describing

Re: Where Do Stored Procedures Fit Into An O/R Mapping Layer?

2003-07-08 Thread Ron Gallagher
[EMAIL PROTECTED] Subject: RE: Where Do Stored Procedures Fit Into An O/R Mapping Layer? The project I'm on has come to the point of integrating sp's into the app, and I was wondering if there were any plans to incorporate Mr. Gallagher's ideas into the main OJB distribution. If so, I'd

Re: Where Do Stored Procedures Fit Into An O/R Mapping Layer?

2003-07-08 Thread Thomas Mahler
Atlanta, GA [EMAIL PROTECTED] From: BURT, RANDALL (CONTRACTOR) [EMAIL PROTECTED] Date: 2003/07/08 Tue AM 10:19:27 EDT To: OJB Users List [EMAIL PROTECTED] Subject: RE: Where Do Stored Procedures Fit Into An O/R Mapping Layer? The project I'm on has come to the point of integrating sp's into the app

mapping 1:n association with anonymous - again

2003-07-07 Thread Reggie Hayes
I sent a message out a couple of days ago describing an error when mappig a 1:n association using the anonymous attribute. Any work arounds? Will this error be fixed in future releases? I am currently using 1.0rc3. Thanks

Re: mapping 1:n association with anonymous - again

2003-07-07 Thread Armin Waibel
PROTECTED] Sent: Monday, July 07, 2003 3:13 PM Subject: mapping 1:n association with anonymous - again I sent a message out a couple of days ago describing an error when mappig a 1:n association using the anonymous attribute. Any work arounds? Will this error be fixed in future releases? I am

mapping 1:n assocaition with anonymous

2003-07-04 Thread Reggie Hayes
I believe I found a bug performing a mapping for a 1:n association setting the access attribute of field-descriptor equal to 'anonymous'. When, I execute the broker.store() method OJB does not store the parent id in the child table. The code is listed below. The code works if I modify the Child

1:n Mapping problem with Map

2003-07-02 Thread ludovic.bert
Hello all, I want to have a 1:n mapping with a HashMap, but i have the following problem: - Firstly i defined my classes like this: public class Client { protected Long id = null; protected String nom = ; protected HashMap contacts = null; public Client

Re: 1:n Mapping problem with Map

2003-07-02 Thread Armin Waibel
= !!! / . regards, Armin - Original Message - From: ludovic.bert [EMAIL PROTECTED] To: ojb-user [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 9:25 AM Subject: 1:n Mapping problem with Map Hello all, I want to have a 1:n mapping with a HashMap, but i have the following problem: - Firstly i

1:n Mapping problem with Map again

2003-07-02 Thread ludovic.bert
: ludovic.bert [EMAIL PROTECTED] To: ojb-user [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 9:25 AM Subject: 1:n Mapping problem with Map Hello all, I want to have a 1:n mapping with a HashMap, but i have the following problem: - Firstly i defined my classes like

Re: 1:n mapping

2003-07-01 Thread Jakob Braeuchi
Jetspeed Portal Project * * [EMAIL PROTECTED] * *===* -Original Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 12:28 PM To: 'OJB Users List' Subject: RE: 1:n mapping Hi again, FieldConversions could

1:n mapping

2003-06-30 Thread Timofey Korolev
Hello! Does anyone has any simple example of 1:n mapping that really works? I'm struggling with this mapping for 3 days and nothing works except 1:1 mapping. -- Regards, CEO Linux-Online.Ru Korolyov Timofey www.linuxshop.ru :: www.prefnews.ru :: www.dotstyle.ru JabberID: [EMAIL PROTECTED

RE: 1:n mapping

2003-06-30 Thread Jim Shingler
column=compositeID/ /collection-descriptor -Original Message- From: Timofey Korolev [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 7:58 AM To: OJB Users List Subject: 1:n mapping Hello! Does anyone has any simple example of 1:n mapping that really works? I'm struggling

RE: 1:n mapping

2003-06-30 Thread Timofey Korolev
; private int id; private String title; } and class Particle { private int particalId; private String name; private int generalId; private General generalObject; } I'm trying to do following mapping class-descriptor class=General table=GENERAL field-descriptor name=id column=id sequence-name

RE: 1:n mapping

2003-06-30 Thread Timofey Korolev
On Mon, 2003-06-30 at 16:54, Eric Northam wrote: What type of problem are you having? When i'm saying in my application broker.strore(General) OJB doesn't makes any records in PARTICLE table. If you're using OTM, ODMG, or JDO, you need to set auto-update to false. I just have done that -

RE: 1:n mapping

2003-06-30 Thread Mahler Thomas
When i'm saying in my application broker.strore(General) OJB doesn't makes any records in PARTICLE table. Ahh! That's easy: You have to change the collection-descriptor as follows: collection-descriptor name=particles element-class-ref=Particle orderby=particleId sort=DESC

RE: 1:n mapping

2003-06-30 Thread Timofey Korolev
On Mon, 2003-06-30 at 17:08, Mahler Thomas wrote: When i'm saying in my application broker.strore(General) OJB doesn't makes any records in PARTICLE table. Ahh! That's easy: WoW! That worked but partially ;-) select * from PARTICLE looks like id | name | gid +--+-

RE: 1:n mapping

2003-06-30 Thread Mahler Thomas
(); art3.setArticleName(CASTOR); ProductGroup pg = new ProductGroup(); pg.setName(O/R mapping tools); pg.add(art1); pg.add(art2); pg.add(art3

RE: 1:n mapping

2003-06-30 Thread Weaver, Scott
    * * Jakarta Jetspeed Portal Project   * * [EMAIL PROTECTED] * *===*   -Original Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 10:11 AM To: 'OJB Users List' Subject: RE: 1:n mapping Hi all, Mhh, strange

RE: 1:n mapping

2003-06-30 Thread Weaver, Scott
:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 12:28 PM To: 'OJB Users List' Subject: RE: 1:n mapping Hi again, FieldConversions could be a factor. We have testcases for FieldConversions on PrimaryKey fields, but I think no tests for 1:n plus backreference + FieldConversion on foreignkey

Re: mapping

2003-06-27 Thread Joerg Lensing
hi olli, how did you solve the problem, that this solutions is inflexible? e.g. what can i do, if i need a more dynamic way of implementation? (say you want to add a new option to the field? joerg - To unsubscribe, e-mail:

RE: mapping

2003-06-26 Thread oliver . matz
Hello, -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 10:12 AM To: OJB Users List Subject: mapping hello, i have to map several fields which can have a limited number of values. e.g. day of week = mon,tue, wed. Because

Re: mapping

2003-06-26 Thread Joerg Lensing
[EMAIL PROTECTED] schrieb: or maybe BYTE? yes, this would be ok took, we have the same situation. We use the type-safe enum pattern in our application, i.e., a class DayOfWeek with a private constructor and seven static fields of type DayOfWeek, namely MONDAY, TUESDAY and so on. Then we

RE: mapping

2003-06-26 Thread oliver . matz
Hello, -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] We use the type-safe enum pattern in our application, Then we implement a class DayOfWeekToIntConversion implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion i thought about this

RE: mapping

2003-06-26 Thread Lance Eason
using the field-descriptor's 'conversion' attribute for the appropriate fields. -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 3:12 AM To: OJB Users List Subject: mapping hello, i have to map several fields which can have a limited number

Re: mapping

2003-06-26 Thread Joerg Lensing
hello lance and oliver, you convinced me :-) joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Automatic Mapping Tool

2003-06-24 Thread Thomas Mahler
Hi Julia, There is an XDoclet module for OJB. It allows to take your tagged Java source code and will generate the repsotory_user.xml and a Torque DDL script for you. It will be part of the official XDoclet distribution soon. For the time being it is available here:

Re: extents and mapping inheritence

2003-06-24 Thread Leandro Rodrigo Saad Cruz
I have inherence working for collection descriptors. I'm planning to add reference and field inherence too. When I have time :-( On Mon, 2003-06-23 at 16:02, Jakob Braeuchi wrote: hi scott, ojb does not support inheritence of field- and relationship-descriptors. but there are some

RE: extents and mapping inheritence

2003-06-24 Thread Weaver, Scott
To: OJB Users List Subject: Re: extents and mapping inheritence Hi Scott, Weaver, Scott wrote: Is there anyway I can remove the mapping for B entirely. It implements the interface AB and extends A. That should be good enough for OJB. However, when I try this, I get class B

RE: extents and mapping inheritence

2003-06-24 Thread Mahler Thomas
: Tuesday, June 24, 2003 7:28 AM To: OJB Users List Subject: Re: extents and mapping inheritence I have inherence working for collection descriptors. I'm planning to add reference and field inherence too. When I have time :-( On Mon, 2003-06-23 at 16:02, Jakob Braeuchi wrote: hi scott

RE: extents and mapping inheritence

2003-06-24 Thread Leandro Rodrigo Saad Cruz
] * *===* -Original Message- From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 7:28 AM To: OJB Users List Subject: Re: extents and mapping inheritence I have inherence working for collection descriptors. I'm planning to add reference and field inherence

RE: extents and mapping inheritence

2003-06-24 Thread Weaver, Scott
- From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:32 AM To: OJB Users List Subject: RE: extents and mapping inheritence Please, see if this patch can help you ! It changes RepositoryXmlhandler to make collection descriptors avaible to extents

RE: extents and mapping inheritence

2003-06-24 Thread Mahler Thomas
working against CVS HEAD is prefered as it make the committers life easier :-) -Original Message- From: Weaver, Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 5:24 PM To: 'OJB Users List' Subject: RE: extents and mapping inheritence Will this patch correctly

RE: extents and mapping inheritence

2003-06-24 Thread Leandro Rodrigo Saad Cruz
] * *===* -Original Message- From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:32 AM To: OJB Users List Subject: RE: extents and mapping inheritence Please, see if this patch can help you

RE: extents and mapping inheritence

2003-06-24 Thread Weaver, Scott
Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:20 AM To: 'OJB Users List' Subject: RE: extents and mapping inheritence working against CVS HEAD is prefered as it make the committers life easier :-) -Original Message- From: Weaver, Scott

Automatic Mapping Tool

2003-06-23 Thread Julia . Winkler
Hello, I have my application already running and I want to change the persistence to the OJB ODMG API. I have some classes (Value Objects) that I want to persist. I have a ServerVO which holds some generic attributes and an attribute of the type ModulesVO. This ModulesVO contains a List of

Re: extents and mapping inheritence

2003-06-23 Thread Thomas Mahler
Hi Scott, Weaver, Scott wrote: Is there anyway I can remove the mapping for B entirely. It implements the interface AB and extends A. That should be good enough for OJB. However, when I try this, I get class B is not persistence capable. The reason I want to do this is B is a special case

Mapping classes to multiple data sources

2003-06-19 Thread Simon Allaway
Hi folks, I have a question. According to the feature list OJB, classes can be mapped to an arbitrary number of JDBC sources. I read this to mean that I could define a class descriptor so that it could be associated with a specific jdbc-connection. Therefore class-descriptors with foreign key

RE: Questions re. mapping of associations...

2003-06-17 Thread Leeuw van der, Tim
Hi, thanks again for your clarifications. [...] I looked at the order-by attribute of the reference descriptor, but I can't use that. There is no attribute in my element-classes that I can sort on; it's the order that I put them in the list that is relevant. Mhh, In an RDBMS

RE: Questions re. mapping of associations...

2003-06-17 Thread Leeuw van der, Tim
-Original Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 juni 2003 15:22 To: 'OJB Users List' Subject: RE: Questions re. mapping of associations... [...] The most elegant way would be to have a simple factory method that is used to create Jav.util.List

RE: Questions re. mapping of associations...

2003-06-17 Thread Mahler Thomas
to serve XML, 1 to serve DB. Perhaps 2 to serve different databases, if I want to compare performance of different databases or O/R mapping solutions. When creating an instance of one of my objects I will need to somehow specify which of the PersistenceProvider instances to choose from

Re: ODMG api with m:n mapping.

2003-06-12 Thread Henrik Berg
Still no answers...??? Eric Northam [EMAIL PROTECTED] writes: Has anyone come up with a solution for this? I'm having the same problem. I haven't tested whether it works with the PersistenceBroker though. Eric Subject: ODMG api with m:n mapping. From: Wara Songkran paan130

RE: ODMG api with m:n mapping.

2003-06-12 Thread Eric Northam
Nope and I was able to duplicate the problem under Hypersonic albeit with a slightly different error message. Eric -Original Message- From: Henrik Berg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 9:49 AM To: OJB Users List Subject: Re: ODMG api with m:n mapping. Still

Re: ODMG api with m:n mapping.

2003-06-12 Thread Armin Waibel
Northam [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:00 PM Subject: RE: ODMG api with m:n mapping. Nope and I was able to duplicate the problem under Hypersonic albeit with a slightly different error message. Eric -Original Message- From

RE: ODMG api with m:n mapping.

2003-06-12 Thread Eric Northam
- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:04 PM To: OJB Users List Subject: Re: ODMG api with m:n mapping. Hi all, there is a test case called ManyToManayTest.java in the test suite ([db-ojb]/src/test/org/apache/ojb/odmg). These tests all passed well

Re: ODMG api with m:n mapping.

2003-06-12 Thread Armin Waibel
Hi Eric, - Original Message - From: Eric Northam [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:27 PM Subject: RE: ODMG api with m:n mapping. Since it was an error on my part for setting auto-update=true I'm not sure you need the test. What

Re: ODMG api with m:n mapping.

2003-06-06 Thread Eric Northam
Has anyone come up with a solution for this? I'm having the same problem. I haven't tested whether it works with the PersistenceBroker though. Eric Subject: ODMG api with m:n mapping. From: Wara Songkran paan130 at yahoo.com Date: Sat, 24 May 2003 02:02:46 -0700 (PDT) Newsgroups: http

map mapping

2003-06-05 Thread [EMAIL PROTECTED]
Hello, I have a class with a map type attribute. I've try to store it using object to byte array conversion but it seems to not work. There are no errors during the storage, but when I list rows from the table, the corresponding column is empty whereas when debugging the converter it returns a

Oracle, OBJ-Mapping and BigDecimals

2003-06-02 Thread Torsten Trzeciak
Hi, usually I use a special ID field in every DB table which has a generated ID. Now I have Oracle 8.x.x and for me it seems that Oracle only accepts numbers which are Converted to BigDecimals. After mapping the table with OJB I got an exception because the long (java class) to number conversion

Re: Mapping two (or more) classes to one table

2003-05-30 Thread Alexander Prozor
Hello Joerg, in the turorial3.html file ( doc ). see the section mapping inheritance hierarchy to the same table. as far as I understand it's required additional column in the table field-descriptor name=ojbConcreteClass column=CLASS_NAME jdbc-type=VARCHAR / or you have

Re: 1 to N mapping problems

2003-05-29 Thread kraemer
On Wed, May 28, 2003 at 08:32:16PM +0800, Stephen Ting wrote: Hi Jens, You're right. That's means this setup won't work. If the Log and LogReceiveItem persisting to different table then it should be ok. Haven't try, just guessing. How to configure the repository to enable two classes(Log

1 to N mapping problems

2003-05-28 Thread Stephen Ting
The relationship of the classes are LogReceiving 1:N LogReceivingItem --- Log The LogReceivingItem object actually reference to Log object. If I don't reference it to Log object. It's run perfectly. Whereas if I include the reference-descriptor to Log object it will failed because of

Re: 1 to N mapping problems

2003-05-28 Thread kraemer
Hi Stephen, see comments below... On Wed, May 28, 2003 at 05:13:28PM +0800, Stephen Ting wrote: The relationship of the classes are LogReceiving 1:N LogReceivingItem --- Log The LogReceivingItem object actually reference to Log object. If I don't reference it to Log object. It's run

RE: 1 to N mapping problems

2003-05-28 Thread Stephen Ting
to the same table with LOG_ID as primary key? Regards, Stephen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 17:52 To: OJB Users List; Stephen Ting Tiew Ung Subject: Re: 1 to N mapping problems Hi Stephen, see comments below... On Wed, May

Re: Mapping compound primary key in OJB

2003-03-29 Thread Thomas Mahler
Hi Tong Kiat, If you have a table with a compound primary key, you must declare all java attributes mapped to the primary key columns as primarykey=true. In Colletcion and ReferenceDescriptors you have to provide one foreignkey entry for each primary key column. cheers, Thomas Chiah Tong Kiat

<    1   2   3   4   5   6   >