Philippe,
Another solution is:
create a new folder and put the conf files here
configure this folder as a source folder
when you build the project, your conf files will be automatically copied in
WEB-INF/classes
Regards
Sylvain
-Message d'origine-
De: Christopher C Worley [mailto:[EM
Hi,
If you think it's useful, feel free.
As Phil has pointed out, the field-descriptors should be marked as PKs. If
you want to flesh it out a little (maybe chuck in the projects class
descriptor, or at the least the collection-descriptor), or change it any way
- be my guest.
Cheers,
Charles.
The SequenceManager stuff can now be defined per class. Thus it has been
moved from OJB.properties to the repository.xml
Christopher Cheng wrote:
I was trying to upgrade from 0.9.6 to 1.0rc1. When I startup the webapp, it give me the following error
[BOOT] ERROR: Error in instantiation of Pe
Linakge error indicates that you have different xerxes version on the
classpath. Please recheck your settings.
But I have never seen the "Class org/xml/sax/ContentHandler violates
loader constraints" message before.
Thomas
David Chelimsky wrote:
Thanks Thomas. I went ahead and attempted to depl
Hi Adam
It's a compiletime depency. So if your application does not use any J2EE
features there's no problem at runtime without that jar file.
cheers,
Thomas
Adam Griffiths wrote:
I only wish to map a the objects of a standalone application to a local
database. Is j2ee still required for me? I d
I was trying to upgrade from 0.9.6 to 1.0rc1. When I startup the webapp, it give me
the following error
[BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class
Could not read repository class descriptor data, using repository: repository.xm
l: Class org.apache.ojb.broker.util.s
Thanks Thomas. I went ahead and attempted to deploy anyhow, but now I get
the following error:
"Class org/xml/sax/ContentHandler violates loader constraints"
Here's the whole output - pls let me know if you see anything familiar:
java.lang.LinkageError: Class org/xml/sax/ContentHandler
violate
I only wish to map a the objects of a standalone application to a local
database. Is j2ee still required for me? I don't think I need and j2ee
functionality. Am I mistaken?
Many thanks
Adam
s_p_a_m_t_r_a_p from:[EMAIL PROTECTED]
Do n
I forgot to mention I'm running 0.9.9. Here is a little more info. From
my log:
[17:08:04,955,OJBORMManager] DEBUG save: class=common.model.Note
[17:08:04,955,OJBORMManager] DEBUG save:
o=[Note:id=59,code=NOTE79,subcode=foo,ident=ID2564,desc=this is a debug
note,ownerId=74,docId=16]
[17:08:04,9
I'm trying to do something like:
select * from contributions where last_activity >= '2003-03-04
14:35:38';
but using this:
criteria.addGreaterOrEqualThanField("lastActivity", date); or
criteria.addGreaterOrEqualThanField("lastActivity",
formatter.format(date));
doesn't work. Any ideas?
--Sco
Hi Thomas,
This may be a bit off topic
I use OJB exclusively in a web application environment. When a web form
posts to one of my actions I only pass the ids of any dependent objects
(from a list box etc...). I would like to set this id on my target
object and then store it. Of course, th
Hi all,
One other thing to maybe mention about Charles' example is that
the PROJECTRELATIONSHIP table has a composite primary key consisting of
DEVELOPER_ID, LANGUAGE_ID and PROJECT_ID. I didn't see this in the
repository extract.
Phil
Thomas Mahler wrote:
Hi Charles,
thanks for the good expl
But if OJB is deployed on a J2EE application server, we don't have to
specificly add j2ee.jar into classpath. Right?
Lucy
-Original Message-
From: Thomas Mahler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 2:18 PM
To: OJB Users List
Subject: Re: Does db-ojb-1.0.rc1.tgz depend o
Phillipe,
I keep my repository*.xml files in WEB-INF/src, and eclipse seems to
copy them over to WEB-INF/classes for me. I also use the Sysdeo Tomcat
plugin, which may be what's actually helping me out.
HTH,
Colin
[EMAIL PROTECTED] wrote:
Hello,
I am currently building a web application base
Thomas et al,
Congratulations.
What is the status on incorporating the fix to Oracle lobs?
Michael
- Original Message -
From: "Thomas Mahler" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>; "OJB Developers List"
<[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 1:38 PM
Subj
I have a m:n relation setup between Party, GalleryRole, Gallery. After
the Party and Gallery or created. The user can then add parties to the
gallery in the GalleryRole table. However when i try to store this object
ojb tries to select the record and no insert. I am using the PB api.
Does anyon
Hi Joerg,
Joerg Lensing wrote:
Hi,
junit: Article - Produktgroup
Article holds an ID from Productgroup. In the example it is the
primaryKey from table Kategorien.
foreign keys from one table alway reference primary keys of another (or
the same in case of self-join) table.
Can I use different f
Hi Dennis,
Dennis Ryan wrote:
I dont know who is responsible for these things,
I shouldn't admit it, but it's usually me...
but I have what i think is
a minor request. What i'd like, and what i think would be useful to others
is a html formatted junit report. The plaintext output in my opinion i
Hi David,
The testsuite has been tested against HSQLDB only. So it's quite
possible that certain special thing fail for certain other platforms.
This is normally nothing to worry about. Not all RDBMS/JDBC drivers
support all possible features.
Just have a look at the log files in target/test an
Hi Joerg,
I'm not quite sure if I got your question.
Are you asking if the field-descriptors for "name" and "number" must be
present in the class-descriptors for the concrete classes, or if it is
possible to just define them once in the base-classes descriptor?
The answer to this question is: N
Hi Philippe,
just place OJB.properties into the root of your source folder. it will
be copied to WEB-INF/classes by eclipse automatically on a complete build.
chers,
Thomas
[EMAIL PROTECTED] wrote:
Hello,
I am currently building a web application based on Tomcat and Struts, using
the Eclipse ID
I absolutely agree with Charles!
the automatic handling of foreign keys was build to let developers
concentrate on business objects and not on rdbms details.
Thomas
Charles Anthony wrote:
Hi,
Developer should only ever set foo, and should never set fooId.
OJB manages all foreign keys.
In our
Hi Charles,
thanks for the good explanation and sample (pseudo-) code.
I believed I had to write a testcase with an example, but I thinks it's
not longer required as your sample gives the whole picture.
thanks for saving my evening!
Thomas
PS: If you don't mind I'll place this into our FAQ.
Cha
Hi Adam,
The message you see is not lying! You really have to place j2ee.jar into
your classpath.
The OJB dependencies are listed here:
http://db.apache.org/ojb/dependencies.html
cheers,
Thomas
Adam Griffiths wrote:
Hi,
I just downloaded db-ojb-1.0.rc1-src.tgz and db-ojb-1.0.rc1.tgz and
install
Philippe,
Change your eclipse build directory from /WEB-INF/classes to /classes.
-chris worley
Hello,
I am currently building a web application based on Tomcat and Struts, using
the Eclipse IDE.
Trying to use OJB as the persistence layer, I have the following problem :
The OJB spec. requires t
Hello,
I am currently building a web application based on Tomcat and Struts, using
the Eclipse IDE.
Trying to use OJB as the persistence layer, I have the following problem :
The OJB spec. requires that the config files (OBJ.properties,
repository.xml...) be retrieved from the classpath,
which m
Hi,
I just downloaded db-ojb-1.0.rc1-src.tgz and db-ojb-1.0.rc1.tgz and
installed them on my windows 2000 machine which has j2sdk1.4.1_01 set up on
it. Running "bin\build.bat junit" and "bin\build prepare-tutorials" gives
the following error:
BUILD FAILED
file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee
Hi Charles,
Thanks for the detailed answer. That does the job nicely. We had moved
from an m:n relationship and were somewhat blinded by the fact that we
hadn't been using the association table directly (we had used it as an
'indirection-table').
Thanks again,
John
-Original Message-
Another helpful thing to know is that
PersistenceBroker.retrieveReferences(myObject) will automatically update
any reference objects attached to myObject from the corresponding
foreign key ID fields.
-Original Message-
From: C F [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:
We've actually gone with a hybrid approach. All of our objects provide two methods
for setting a reference. The first method includes the id of the referenced object in
the argument list. The second includes the actual object reference in the argument
list. Something like this:
public class
Oh!! I get it now :) That fixed the problem. Although, I could've sworn it was
working the way I had it before the upgrade, but I guess I was mistaken. Anyway,
thanks for your patience!
Ron Gallagher <[EMAIL PROTECTED]> wrote:The issue isn't the presence of the record in
the table. It's th
Hi,
Developer should only ever set foo, and should never set fooId.
OJB manages all foreign keys.
In our app, we don't generate setters for any id fields (primary or
foreign), and we only have a getter for the PK. Therefore, the developers
find it much harder to fiddle with the keys.
Cheers,
Hi David,
Application code should (never?) touch the fooOid, only the referred Foo
objects should be manipulated. Likewise for the collections and their
parent object id. OJB does the underlying synchronization for you.
But maybe you have some special conditions that sometime require you to
The issue isn't the presence of the record in the table. It's the presence on the
"newImport" of an "Lu_process_status" object which represents the "Q" record in the
database.
When you store newImport, ojb looks at the content of newImport to figure out what
values to use in the sql statement.
Hey all,
Does anyone have or is in the process of creating an xsl script to
translate JDO xml configuration files into OJB configuration files?
Regards,
Lennart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
There are some aspects of OJB that require/encourage having two pieces of
data to represent single relationship.
1) When I have an referenceDescriptor, I have to have a fooOid, and a Foo,
both of which are two ways of referring to the same thing.
2) When I have a collectionDescriptor, I have a col
Thanks for the reply Ron. I actually wondered if something like that was going on and
I tested that before sending the message. The value *does* exist in that other
table
select * from lu_process_status where id = 'Q';
returns a record. So if I understood your message correctly, that
Hi,
OK, I think I understand what you want.
Why is this a "special" scenario ?
You can (and we have in our app) defined a class that represents the
relationship. We have mapped that to a table with the corresponding ids. We
can then do queries/updates on that relationship as with any other.
Her
Hi Thomas,
The example we have is related to the handling of royalties in the music
industry. We have the following 3 tables for which we need a ternary
association.
WORKS
MEMBERS
SHARES
A work has a number of members associated with it each of which has a share
in the work. (Or looking at it t
Hi,
With a ternary relationship there are three (or more) objects 'related' to
each other. An example would be 'developer', 'language', 'project'. You
want to represent the combinations of these that exist. It's realised by a
bridge table with 3 columns representing the foreign keys in the othe
Hi John,
How das do your object model and the respective table look like.
Please give some details, so that I can try to answer.
thanks,
Thomas
> -Original Message-
> From: O'Reilly John [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 4:58 PM
> To: 'OJB Users List'
> Subject: R
When OJB performs the insert/update, it uses the value of "id" from the
Lu_process_status object that's stored in the "lu_process_status" field for the value
of imports.status_id. If the field "lu_process_status" is null when you ask ojb to
store the object, then ojb will populate imports.statu
I didn't know exactly what a Ternary association is.
A quick google suggests that it is what OJB calls an M:N association (a
resolution for a many-many relationship).
If it is one of them, then yes, OJB does support it.
See
http://db.apache.org/ojb/tutorial3.html#mapping%20m:n%20associations
C
When I update the link object (the object between to others in an M:N
relationship), the FKs to the outer objects are being set to null in
outgoing SQL according to p6spy. Am I forgetting to do something? The
code is the typical,
broker.beginTransaction();
broker.store(o);
broker.commitTransact
Hi,
Sorry to repost the following question but can someone give me a yes/no
answer on this. If no, then we need to look for another way of doing this.
Thanks,
John
-Original Message-
From: O'Reilly John [mailto:[EMAIL PROTECTED]
Sent: 26 February 2003 16:59
To: 'OJB Users List'
Subject
Hello,
I'm about 90% sure this problem started happening after I upgraded some stuff (OJB,
PostgreSQL and JDBC driver). What's happening is that for some reason, on inserting,
OJB seems to be inserting everything correctly except for my 'status_id' field and I
have no idea why. Below, I have
Hi,
junit: Article - Produktgroup
Article holds an ID from Productgroup. In the example it is the
primaryKey from table Kategorien.
Can I use different field for it?
i get the message:
WARN: OJB broker could not materialize AbstractPersistent{1332}
The number shown is the fieldvalue i want
I dont know who is responsible for these things, but I have what i think is
a minor request. What i'd like, and what i think would be useful to others
is a html formatted junit report. The plaintext output in my opinion is not
as readable. I've made the required changes below, basically it's just
I'm having trouble getting this going. Here's the deal:
- win 2k
- ant 1.4.1
- jdk 1.4.0 and 1.4.1 (same failures in both environments)
- modified build.properties as follows:
...
#profile=hsqldb
...
profile=mysql
...
- modified the urlDbalias in mysql.profile to point to my local database
- C:\de
Hi Joerg,
I'm not 100% sure but IMO it should be possible to use the persistent ODMG
collection with PB too.
Just give it a try.
Thomas
> -Original Message-
> From: Joerg Lensing [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 8:46 AM
> To: OJB Users List
> Subject: Re: how to
Ups! That's my fault.
I removed the 'bad' descriptor from junit
repository (was a little to fast, check in descriptor
without associated class).
regards,
Armin
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 1:22 PM
Subject: ObjectCache
Hello,
I am using current CVS HEAD. When starting the junit tests, I get
the following error. It can be fixed by commenting out the respective
class descriptor in repository_junit.xml.
Am I the only one with that problem?
Could not read repository class descriptor data, using repository:
repos
hi,
is it possible to map "base"-fields from a base-class?
Base-class: BaseX.class
fields: name, number
(concrete) inherited classes:
-->ExtendedBaseX_A
-->ExtendedBaseX_B
.|_->ExtendedBaseX_B_xyz
all Classes need the same fields "name" and "number". They allways u
53 matches
Mail list logo