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
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.
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
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
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
: 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
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
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
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
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
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
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
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
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
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 /
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
]
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
-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.
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
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
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
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
: [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
: [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
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
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
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
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
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
[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
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
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
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
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
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
= !!!
/
.
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
: 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
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
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
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
;
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
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 -
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
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
+--+-
();
art3.setArticleName(CASTOR);
ProductGroup pg = new ProductGroup();
pg.setName(O/R mapping tools);
pg.add(art1);
pg.add(art2);
pg.add(art3
*
* 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
:[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
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:
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
[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
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
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
hello lance and oliver,
you convinced me :-)
joerg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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:
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
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
: 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
] *
*===*
-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
-
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
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
] *
*===*
-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
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
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
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
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
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
-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
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
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
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
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
-
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
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
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
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
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
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
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
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
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
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
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
401 - 500 of 531 matches
Mail list logo