Re: Mapping a List (or Set) with OJB.

2008-02-20 Thread Armin Waibel
Hi Johan, Johan Andersson wrote: Greetings! Say I have a class MyClass it looks like this: public class MyClass { private int id; private String name; private List myIntegers = new ArrayList; /* getters and setters omitted ... */ } What options do I have if I want to persist

Re: Mapping hierarchy in one table problem

2008-02-11 Thread Alessandro Colantoni
It's no shame! It's something that can co on with everybody. I think that all of us we have something like that to tell..:-) On 2/11/08, Schmidt <[EMAIL PROTECTED]> wrote: > > > Hi Alessandro, > > Yes, you are right, it's a typho. But it does not reflect my real code. > > Nevertheless, I have fo

Re: Mapping hierarchy in one table problem

2008-02-11 Thread Schmidt
Hi Alessandro, Yes, you are right, it's a typho. But it does not reflect my real code. Nevertheless, I have found the answer. It's "shame on me". OJB has nothing do do with that. I forgot to include a reference to the GrandChildProject mapping file (&grandChildProject;) in the repository.xml fil

Re: Mapping hierarchy in one table problem

2008-02-11 Thread Alessandro Colantoni
Just having a first superficial look. I see in your code GenericDAOApacheOJB grandChildProjectDao I didn't see GrandChildObject anywere else in your mapping, but maybe I'm not seeing well. Shouldn't it be GenericDAOApacheOJB ? On 2/11/08, Schmidt <[EMAIL PROTECTED]> wrote: > > > Hi Armin, >

Re: Mapping hierarchy in one table problem

2008-02-11 Thread Schmidt
Hi Armin, Thanks again. In order to query the database for GrandChildProject objects, I use a generic class that extends PersistenceBrokerDaoSupport: public class GenericDAOApacheOJB extends PersistenceBrokerDaoSupport { private Class persistentClass; public T getById(PK id) throws Da

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Armin Waibel
Schmidt wrote: Upgraded to 1.0.4 and the problem persists. Any idea? In OJB test-suite we run several tests using table per hierarchy inheritance without any problems. So please, post all information to reproduce your issue - java source code or pseudo code of the java objects and the query.

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Schmidt
Upgraded to 1.0.4 and the problem persists. Any idea? -- View this message in context: http://www.nabble.com/Mapping-hierarchy-in-one-table-problem-tp15354434p15361892.html Sent from the Apache DB - ObjectRelationalBridge Users mailing list archive at Nabble.com. -

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Schmidt
Thanks for the answer! I was using 1.0.3 but now I'm upgrading to 1.0.4 to see if my luck changes Armin Waibel wrote: > > Hi, > > which version of OJB do you use? > > Schmidt wrote: >> Hi, >> >> I'm facing a hard time trying to fix a problem in my app. Consider the >> floowing class hierarch

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Armin Waibel
Hi, which version of OJB do you use? Schmidt wrote: Hi, I'm facing a hard time trying to fix a problem in my app. Consider the floowing class hierarchy: class Project {..} class ChildProject extends Project {..} class GrandChildProject extends ChildProject {..} How do you set the ojbConcret

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Schmidt
Any clue? I've spent the last 4 hours trying to figure out what can be wrong, but the problem persists. I'm running out of ideas :( -- View this message in context: http://www.nabble.com/Mapping-hierarchy-in-one-table-problem-tp15354434p15359642.html Sent from the Apache DB - ObjectRelationalBri

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Schmidt
One More detail: as I said, the search results in a ChildProject reference instead of GrandChildProject. However, the ojbConcreteClass attribute in this ChildProject is set to "br.com.xxx.model.GrandChildProject". If ojbConcreteClass points to "br.com.xxx.model.GrandChildProject", how can OJB crea

Re: Mapping for type BIT broke afer upgrade from 1.0.1 to 1.0.4

2008-01-29 Thread Armin Waibel
Hi Oliver, Oliver Seimel wrote: Hi, we migrated from ojb 1.0.1 to 1.0.4 DB is Postgres. But I think, that the "problem" is independent of the DB. We use the type BIT(1) for boolean values, so a mapping looks like this: With version 1.0.1 the generated SQL was ... WHERE emailnotice = '1' ..

Re: Mapping List's

2006-04-05 Thread Armin Waibel
Hi Markus, Markus Brigl wrote: Hi Armin, it didn't mean the order-by, which does an ordering related to an attribute. What I mean is the insert order in a list; if an object A has index 0 in the list I would expect it has the same index after fetching the list in a different transaction. At ex

Re: Mapping List's

2006-03-27 Thread Markus Brigl
Hi Armin, it didn't mean the order-by, which does an ordering related to an attribute. What I mean is the insert order in a list; if an object A has index 0 in the list I would expect it has the same index after fetching the list in a different transaction. At example with Hibernate it is possibl

Re: Mapping List's

2006-03-27 Thread Armin Waibel
Hi Markus, Markus Brigl wrote: Hi, I have a problem with the mapping of List's. If I store the list to DB and reload it the order of the objects are casual and not the same as I inserted them in the List. Can I configure the repository file in some way that OBJ stores even the indexes of the Li

Re: Mapping 2 or more all classes on the same table

2005-04-28 Thread Thomas Mahler
Dear Ramakrishna, We had this feature since 2001! Please note that OJB is not based on lies ! for details refer to the documentation under http://db.apache.org/ojb/docu/guides/advanced-technique.html#Mapping+All+Classes+on+the+Same+Table cheers, Thomas Ramakrishna Reddy wrote: Hi, Do we have p

RE: Mapping Classes on Multiple Joined Tables

2005-04-21 Thread Gelhar, Wallace Joseph
To: OJB Users List Subject: Re: Mapping Classes on Multiple Joined Tables Jakob Braeuchi wrote: >> >> The issue is noted in the release-notes: >> >> >> - When a class mapped on multiple joined tables was used in a >> reference only objects >> of the ba

Re: Mapping Classes on Multiple Joined Tables

2005-04-21 Thread Armin Waibel
Jakob Braeuchi wrote: The issue is noted in the release-notes: - When a class mapped on multiple joined tables was used in a reference only objects of the base type class will be instantiated, e.g. a Company class has a 1:n reference 'employees' to a base class Employee and class Manager ext

Re: Mapping Classes on Multiple Joined Tables

2005-04-21 Thread Jakob Braeuchi
hi armin, Armin Waibel schrieb: Stefan Walkner wrote: hello, we start working on this issue. Hope till next release this will be fixed. thank you for the info! I really was searching long and was not able to find any information about that, so I'm glad to hear any response from you. The issue

Re: Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Armin Waibel
Stefan Walkner wrote: hello, we start working on this issue. Hope till next release this will be fixed. thank you for the info! I really was searching long and was not able to find any information about that, so I'm glad to hear any response from you. The issue is noted in the release-notes: -

Re: Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Stefan Walkner
hello, > we start working on this issue. Hope till next release this will be fixed. thank you for the info! I really was searching long and was not able to find any information about that, so I'm glad to hear any response from you. Thank you, stefan walkner -

Re: Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Armin Waibel
Hi Stefan, Stefan Walkner wrote: hello, I use Mapping Classes on Multiple Joined Tables to map an Object which inherits from another into two tables. BUT: is there a way to get the different objects back, when querying? I mean, I have following mappings: we start working on this issue. Hope till n

Re: mapping one object in different RDBMS - source

2005-04-11 Thread Stas Ostapenko
Armin, thanks for your reply. But one more thing. I use table with something like 100 000 records. Using of PB.getCollectionByQuery may couse problems with memory. Out Of Memory Exception for example. This is not a problem - I can increase heap size for JVM, etc.In this case using PB.getIteratorByQ

Re: mapping one object in different RDBMS - source

2005-04-11 Thread Armin Waibel
Hi, Stas Ostapenko wrote: I have a problem with inserting all table data of one table to another table in other RDBMS. Following code works, but it stores not all the data, but only first object. Where I`m wrong ? First you have to take care that metadata changes are global operations, all metadat

Re: Mapping question

2005-03-03 Thread Georg Müller
I now have a running version, but the way Thomas proposed would be much nicer. I have added a collection descriptor and he returns both addresses. I tried to modify my getters and setters for addresses to set homeAddress and workAddress, but I tested this and noticed that they are not invo

RE: Mapping question

2005-03-03 Thread Günther Wieser
Table when showing how to implement your own ClassDescriptor. cool stuff! kr, guenther -Original Message- From: Georg Müller [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 11:33 PM To: OJB Users List Subject: Re: Mapping question Thomas Dudziak wrote: > As far as I under

Re: Mapping question

2005-03-03 Thread Georg Müller
Thomas Dudziak wrote: As far as I understand he wants to use a reference that refers to a class with a compound primarykey, where one of the foreignkey values is fixed: Yes, that is what I am searching for. - To unsubscr

Re: Mapping question

2005-03-03 Thread Thomas Dudziak
As far as I understand he wants to use a reference that refers to a class with a compound primarykey, where one of the foreignkey values is fixed: That would actually be a neat feature to have IMO ?! Tom - To unsubsc

Re: Mapping question

2005-03-03 Thread Armin Waibel
Hi, not sure that I understand the problem. Each User has two Address attributes ('home' and 'work'), both are of the same type 'Address' (both 1:1 references), you don't use extension classes AddressHome and AddressWork objects. Address use a composite PK ('login' and 'type'). In this case eac

RE: Mapping question

2005-03-03 Thread Günther Wieser
hi, as far as i understand this, you try to differentiate by the value of "adress.type" whether an adress is a home wor work adress? well, i have no solution for that, but i tried it here with a similair data structur, and it didn't work either. to be honest i'm not sure if this is the intended us

Re: Mapping question

2005-03-03 Thread Georg Müller
Sorry for that second posting. I sent this before I subscribed to the list, so I thought it will not be posted (now, with a latency of nearly one day) Regards, Georg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: mapping class to multiple tables?

2005-01-11 Thread Armin Waibel
Hi Bobby, [EMAIL PROTECTED] wrote: Armin - In your response to Jesse in the enclosed email, you stated that "If you want to map a class to multiple tables of different databases you always have to handle this by your own, because there are many pitfals: need of distributed tx, querying, " I nee

Re: mapping class to multiple tables?

2005-01-08 Thread robertl
Armin - In your response to Jesse in the enclosed email, you stated that "If you want to map a class to multiple tables of different databases you always have to handle this by your own, because there are many pitfals: need of distributed tx, querying, " I need to accomplish this for a project

Re: Mapping a simple class problem.

2004-10-04 Thread Jose Felix Hernandez
t; <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Monday, October 04, 2004 11:07 PM Subject: Re: Mapping a simple class problem. Hi Jose, the exception says that UserBO does not declare at least one PK field. > Caused by: > org.apache.ojb.broker.metada

Re: Mapping a simple class problem.

2004-10-04 Thread Armin Waibel
Hi Jose, the exception says that UserBO does not declare at least one PK field. > Caused by: > org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: OJB > needs at least one primary key attrib > ute for class objectsRealClass=class > com.jose.forum.businessobjects.UserBO, In UserBO y

RE: mapping of the datetime type

2004-08-11 Thread Charles Anthony
Hi, java.sql.TimeStamp Cheers, Charles. > -Original Message- > From: Joncheng Kuo [mailto:[EMAIL PROTECTED] > Sent: 11 August 2004 17:26 > To: OJB Users List > Subject: mapping of the datetime type > > > Hi, > > I have a column of type 'datetime' in a MS SQL database. What type > sh

Re: mapping the same class to multiple tables?

2004-06-27 Thread edson . richter
I have a similar solution in my job. I've done in the following way: class A { ... } class A_normal extends A { } class A_history extends A { } Only A_normal and A_history are mapped in repository.xml. So, if I need to manipulate the object, I use class A. To store a normal object, I use and

RE: mapping fields to an array

2004-06-27 Thread Morley, Liam
Thanks for the reply. It looks like I also may have to use a Rowreader to correctly store nested objects as well, so I may very well choose that approach. Thanks again. -- Liam Morley From: Thomas DudziakSent: Sun 6/27/04 4:58 AMTo: OJB Users ListSubject: Re: mapping fields to an array Morley

Re: mapping fields to an array

2004-06-27 Thread Thomas Dudziak
Morley, Liam wrote: We've got a db table with a structure like this: Name Address SSN Field1 Field2 ... Field30approx The guy who designed the java class for this (a bit more of a C-style programmer than I am) wrote a class structure like this: String name; Address address; String ssn; int[] field

RE: Mapping question

2004-06-03 Thread Daniel Perry
June 2004 17:47 > To: [EMAIL PROTECTED] > Subject: Re: Mapping question > > > Hi Daniel, > > I had a look at the extents now. I think this will basically work. The > problem I see is, that the database has 110 tables and all are using a > globally generated OID. In my basic cla

Re: Mapping question

2004-06-02 Thread Sebastian
types extend it. It would pick the right class based on whichever table has an item with that primary key. Daniel. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Sebastian Sent: 02 June 2004 17:07 To: [EMAIL PROTECTED] Subject: Re: Mapping question To simplify my question

RE: Mapping question

2004-06-02 Thread Daniel Perry
IL PROTECTED] > Subject: Re: Mapping question > > > To simplify my question: > > I have a table containing a foreign key column and the foreign key of a > row points to different tables based on the first three letters of the > foreign key. E.g. when it starts with "

Re: Mapping question

2004-06-02 Thread Sebastian
To simplify my question: I have a table containing a foreign key column and the foreign key of a row points to different tables based on the first three letters of the foreign key. E.g. when it starts with "art" then it points to a record in the article table. When it starts with "cat" then it p

Re: Mapping Classes on Multiple Joined Tables

2004-05-06 Thread Jakob Braeuchi
hi charles, this should do it: Query q = QueryFactory.newQuery(A.class, c); broker.getCollectionByQuery(q); fyi there's a testcase dealing with multi-joined-tables InheritanceMultipleTableTest. this testcase requires the latest from repository to pass completely. hth jakob Charles N. Harvey II

Re: Mapping two classes two one table

2004-03-25 Thread Edson Carlos Ericksson Richter
The result of a report query is a Object [], where each element represents a row from the database, and is a Object[] (one value for each field returned). Best regards, Edson Richter Guido Beutler wrote: Hi jakob, Thanks for the fast reply! works fine but one shot question: How do I get the

Re: Mapping two classes two one table

2004-03-25 Thread Guido Beutler
Hi jakob, Thanks for the fast reply! works fine but one shot question: How do I get the values (colums) from the object ? At the test cases I found only asserts on the size of the collection. Of course I would like to get the values. Thanks in Advance!! best regards, Guido Jakob Braeuchi wrot

Re: Mapping two classes two one table

2004-03-25 Thread Jakob Braeuchi
hi guido, use a report-query to retrieve the pks only. hth jakob Guido Beutler wrote: Hi, I've got a small problem. I have a table with many columns. I would like to select only the primary key field with a complex select first. It's like a candidate list. From that I can find the correct valu

Re: Mapping composite collections

2004-03-12 Thread Laurie Harper
Heh, I must have been asleep when I wrote that, it all seems so obvious now! :-) Sorry for the noise! L. Laurie Harper wrote: I'm a bit at a loss on this one :-) I have a class whose properties are collections of entries defined by an inner class. I can see how to map the inner class onto a da

RE: Mapping Inheritance

2004-03-03 Thread Muhammad Aamir
Well, I read the documentation that there is a way to do say. But I want that when I query on Task class all objects of Task as well as Complaint should be returned, because Complaint is a sub class of Task. But document says that you cannot do so! Is there any workaround ? Thank you -Orig

Re: Mapping question

2004-02-16 Thread ftanare
My problem is that the C.foreignId field contains both a.idA and b.idB and I know if it's an A id or a B id with C.type field. The query must have "C.foreignId = A.idA AND C.type='typeA'" or "C.foreignId = B.idB AND C.type='typeB'" clause. it's not a standard case of "1:n relations". thanks Flo

Re: Mapping question

2004-02-16 Thread BIRGITTA . MOEHRING
Hello again, If you want "C.foreignId = A.idA" then the 1:n - relation between C and A is the other way round: C would be the n-class. But if you simply want C having two collections as attributes, it is described in tutorial 3, "mapping 1:n relations". Was that the answer? regards, Birgitta

Re: Mapping question

2004-02-16 Thread ftanare
My english is not good ;-) What I want is in C object 2 collections one with typeA Object and one with typeB Object. My question is how to do a mapping with OJB that can make this kind of switch on type field. In other word when I load A objects collection of a C object the query is : SELECT AFie

Re: Mapping question

2004-02-16 Thread ftanare
My english is not good ;-) What I want is in C object 2 collections one with typeA Object and one with typeB Object. My question is how to do a mapping with OJB that can make this kind of switch on type field. In other word when I load A objects collection of a C object the query is : SELECT AFie

Re: Mapping question

2004-02-16 Thread BIRGITTA . MOEHRING
Hello Florent, I understand this as a question about the typeB collection or the typeA collection exclusively in the C instance? Then you can't even model this in UML (or so I think), so I don't think you can in OJB. The only workaround I know without having two collections in C is a relatio

RE: Mapping Question

2004-01-04 Thread Coup, Robert Muir
Hi Patrick. Is the field doc_id in download_pal_model actually meant to be model_id? Otherwise I am a touch confused :) Also, I assume you've checked out the advanced O/R mapping stuff at http://db.apache.org/ojb/tutorial3.html - if not, do it now! Idea #1: For download -> model ... Field D

Re: Mapping Question

2004-01-01 Thread Patrick Scheuerer
ooops, I guess attachments are not allowed in this mailing list. here's a link to the picture: http://homepage.hispeed.ch/tabalooga/datamodel.jpg the same problem of course also exists for the keyword table. Thank you, Patrick -

Re: Mapping problem

2003-12-18 Thread Armin Waibel
han -Original Message----- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:57 PM To: OJB Users List Subject: Re: Mapping problem Hi Stephan, Stephan Wannenwetsch wrote: Hallo Armin, the insert error has gone, but now I have again the problem with r

RE: Mapping problem

2003-12-18 Thread Stephan Wannenwetsch
I hope you have some more ideas. Thanks, Stephan -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:57 PM To: OJB Users List Subject: Re: Mapping problem Hi Stephan, Stephan Wannenwetsch wrote: > Hallo Armin, > > t

Re: Mapping problem

2003-12-17 Thread Armin Waibel
2.Product P2 200 2000 23 demo.myshop.model.ojb2.ServiceContract SC2 200 20 24 demo.myshop.model.ojb2.ServiceContract SC1 100 10 OJB_SUPPLIER: FK_BPID SHIPPINGCOST 25 120 26

RE: Mapping problem

2003-12-17 Thread Stephan Wannenwetsch
120 26 130 OJB_SUPPLIER_ITEM: ITEMID SUPPLIERID 21 25 22 25 22 26 23 25 23 26 24 25 I hope you can find my error ;-) Thanks, Stephan -Original Message- From: Armin Waibel [mailto:[EMAIL

Re: Mapping problem

2003-12-17 Thread Armin Waibel
Wednesday, December 17, 2003 10:29 AM To: OJB Users List Subject: Re: Mapping problem Hi Stephan, hmm, how does your mapping for demo.myshop.model.ojb2.Supplier look like (nothing changed from your first post)? From your first post >> > class="demo.mys

RE: Mapping problem

2003-12-17 Thread Stephan Wannenwetsch
--Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 10:29 AM To: OJB Users List Subject: Re: Mapping problem Hi Stephan, hmm, how does your mapping for demo.myshop.model.ojb2.Supplier look like (nothing changed from your first post)? Fro

Re: Mapping problem

2003-12-17 Thread Armin Waibel
scriptor with SUPPLIERID column in this class-descriptor. >> >> >> >> regards, Armin Stephan Wannenwetsch wrote: Hi Armin, I checked it but nothing changed. I also removed all data from the DB-tables but nothing changed, too. Thanks, Stephan -Ori

RE: Mapping problem

2003-12-17 Thread Stephan Wannenwetsch
Hi Armin, I checked it but nothing changed. I also removed all data from the DB-tables but nothing changed, too. Thanks, Stephan -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 6:03 PM To: OJB Users List Subject: Re: Mapping problem

RE: Mapping problem

2003-12-15 Thread Stephan Wannenwetsch
Hi Armin, I checked it but nothing changed. I also removed all data from the DB-tables but nothing changed, too. Thanks, Stephan -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 6:03 PM To: OJB Users List Subject: Re: Mapping problem

Re: Mapping problem

2003-12-15 Thread Armin Waibel
regards, Armin Stephan Wannenwetsch wrote: Hi Wally, I'm using the following sequence-manager: Stephan -Original Message- From: Gelhar, Wallace Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 5:35 PM To: OJB Users List Subject:

RE: Mapping problem

2003-12-15 Thread Stephan Wannenwetsch
Hi Wally, I'm using the following sequence-manager: Stephan -Original Message- From: Gelhar, Wallace Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 5:35 PM To: OJB Users List Subject: RE: Mapping problem Hi St

RE: Mapping problem

2003-12-15 Thread Gelhar, Wallace Joseph
: Monday, December 15, 2003 10:16 AM To: OJB Users List Subject: RE: Mapping problem Hallo Wally, I've changed the mapping

RE: Mapping problem

2003-12-15 Thread Stephan Wannenwetsch
eateException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) Some more ideas ??? Thanks, Stephan -Original Message- From: Gelhar, Wallace Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 3:44 PM To: OJB Users List Subject: RE: Mapping problem Hi Stephan

RE: Mapping problem

2003-12-15 Thread Thomas Dudziak
You could make your life a bit easier and try out the XDoclet OJB module which automatically handles inherited fields/references/collections. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: Mapping problem

2003-12-15 Thread Gelhar, Wallace Joseph
Hi Stephan, OJB does not support class descriptor inheritance for elements. Try moving your "common" fields from Sellable item into each of the concrete class descriptors and making Sellable item non-concrete (it is only an interface after all) such as: Hope this helps. Wa

Re: mapping M:N relation WITH ATTRIBUTES

2003-12-08 Thread Leandro Rodrigo Saad Cruz
me at this time is convert the M:N to 1:N but is bad > solution ! > > > > -Original Message- > From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] > Sent: mercredi 3 décembre 2003 14:40 > To: OJB Users List > Subject: Re: mapping M:N relation WITH ATTRIBUTES

Re: mapping M:N relation WITH ATTRIBUTES

2003-12-03 Thread Thomas Dudziak
Where would the Comment field be stored in the Java objects ? If you have a separate Java class for the connection between Employees and Companies which contains the Comment field, then you already have manual decomposition (see http://db.apache.org/ojb/tutorial3.html#Manual%20decomposition%20into

Re: mapping M:N relation WITH ATTRIBUTES

2003-12-03 Thread Leandro Rodrigo Saad Cruz
Hi Reda. I´m working on this problem through the implementation of specific MtoNImplementors. I dunno when I´ll be able to finish this.. but this is supposed to solve problems like yours. On Wed, 3 Dec 2003 13:22:54 +0100, "Reda Benzair" <[EMAIL PROTECTED]> escreveu: > De: "Reda Benzair" <[EMAI

RE: Mapping question

2003-12-01 Thread Norbert . Woegerbauer
barbe [mailto:[EMAIL PROTECTED] Sent: Freitag, 28. November 2003 15:08 To: OJB Users List Subject: RE: Mapping question Hi, I don't really understand you're pb. ;o( Is it : any field from my class A can be THE foreign key (mykey in this case) from my class B ? Regards Éric -Message

RE: Mapping question

2003-11-28 Thread eric barbe
EMAIL PROTECTED] Objet : RE: Mapping question Thanks, I defined it like that, but: >If A is 1 and B is n. >In A class descriptor write : >element-class-ref="url.B"> > > >And in B class descriptor write this > >Here mykey is the foreignkey but not a primar

RE: Mapping question

2003-11-27 Thread Norbert . Woegerbauer
Thanks, I defined it like that, but: >If A is 1 and B is n. >In A class descriptor write : >element-class-ref="url.B"> > > >And in B class descriptor write this > >Here mykey is the foreignkey but not a primary key ! OJB generates statements where mykey points to the pk of class A. The

RE: Mapping question

2003-11-27 Thread eric barbe
Hi, If A is 1 and B is n. In A class descriptor write : And in B class descriptor write this Here mykey is the foreignkey but not a primary key ! Hope it helps you, Éric -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 novembre 2003

Re: Mapping association in one table

2003-11-14 Thread Rémi 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

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 Hope that helps. -Ni

Re: mapping many classes to one table

2003-10-31 Thread Jakob Braeuchi
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 > >

RE: mapping many classes to one table

2003-10-31 Thread Plummer, Greg
ssage- From: 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 exce

Re: mapping many classes to one table

2003-10-31 Thread David Corbin
-- > > Bob Celestino > > SAS Research and Development > > 919 - 531 - 9425 > > [EMAIL PROTECTED] > > > > SAS - The Power to Know > > > > > -Original Message- > > > From: David Corbin [mai

Re: mapping many classes to one table

2003-10-31 Thread Jakob Braeuchi
search 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

RE: mapping many classes to one table

2003-10-31 Thread Robert J Celestino
ginal 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: > >

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 in

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 c

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 writ

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. Boolean2IntFieldC

Re: mapping problem or something VERY wierd...

2003-10-23 Thread Andy Czerwonka
The mapping needed the obvious primary key On Thu, 2003-10-23 at 17:15, Andy Czerwonka wrote: > 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

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 synt

RE: mapping

2003-10-23 Thread Charles Anthony
Hi, Problem is that an class name attribute is empty. It seems that your first extent-class has an incorrectly spelled class-ref attribute (you have calls-ref). Cheers, Charles. > -Original Message- > From: Reitsam Andreas [mailto:[EMAIL PROTECTED] > Sent: 23 October 2003 08:18 > To: Ojb

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 is the sta

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 classes to multiple data sources

2003-07-30 Thread Mahler Thomas
Hi, Yes the Default cache is container wide. You should use the CachePerBrokerImpl to use separate cache regions for each jcdAlias. Thomas > -Original Message- > From: Wayne Kidd [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 3:01 AM > To: [EMAIL PROTECTED] &

Re: Mapping classes to multiple data sources

2003-07-29 Thread Wayne Kidd
I am trying to use the multiple datasources in the way of the current solution. That is, I have 2 jdbc connections, each of them has a full set of the same tables. Therefore, only the jcdalias and its parameters are different. It turns out that they are schemas in the same instance of Oracle

Re: mapping inheritance hierarchies????

2003-07-24 Thread Thomas Cornet
are the extended classes. More info http://db.apache.org/ojb/tutorial3.html#extents and polymorphism regards, Armin - Original Message - From: "Cesar" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Thursday, July 24, 2003 10:41 PM S

Re: mapping inheritance hierarchies????

2003-07-24 Thread Armin Waibel
t; To: "OJB Users List" <[EMAIL PROTECTED]> 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

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 these

Re: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-17 Thread Edson Carlos Ericksson Richter
cksson 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 you need a conversion: > > name="edatum" > >

  1   2   >