Hello Patrick,
-Original Message-
From: Patrick Scheuerer [mailto:[EMAIL PROTECTED]
My first question is: since there are many-to-many
relatioships between
DOCUMENT and CATEGORY and DOCUMENT and KEYWORDS there are two
join tables
called DOCUMENT_CATEGORY and DOCUMENTS_KEYWORD.
-Original Message-
your repository_xml says: indirection-table=document_keyword.
typo? (missing 's');
This is not a typo. The table is called document_keyword.
handle join tables needed by many-to-many in OJB?
see .../db-ojb/src/test/org/apache/ojb/repository_junit.xml
usage
hi patrick,
the collection-descriptor is wrong :
collection-descriptor name =keywords
element-class-ref=ch.ctc.support.category.KeywordVO
auto-retrieve=true
auto-update=true
Hello everybody,
I just got started with OJB and i'm experiencing some problems. Here's the
scenario that i'm trying to get to work:
A DOCUMENT belongs to 1..n CATEGORY.
A DOCUMENT is relevant to 0..n PRODUCT_MODELs.
A DOCUMENT is written by 1..1 AUTHOR.
D DOCUMENT is described by 1..n KEYWORDs.
, pretty messed up, but I am a newbie. OJB is giving me:
SELECT DISTINCT
A0.DISABLED,A0.NAME,A0.SYSTEM_NUMBER,A0.LAST_UPDATED_BY,A0.LAST_UPDATED
FROM IMCOP.IMENU A0,ASSOC_IOBJECT_IMENU A1,IMCOP.IOBJECT
A2,ASSOC_IGROUP_IOBJECT A3,IMCOP.IGROUP A4,IMCOP.ASSOC_IGROUP_IUSER
A5
WHERE A4.SYSTEM_NUMBER=A5
Hi Michael,
This is your SQL (minus all the parenthesis)
SELECT DISTINCT IMENU.SYSTEM_NUMBER, IMENU.LAST_UPDATED,
IMENU.LAST_UPDATED_BY, IMENU.NAME, IMENU.DISABLED
FROM ASSOC_IGROUP_IUSER INNER A5 JOIN IGROUP A4
ON A4.SYSTEM_NUMBER=A5.GROUP_SYSNO
INNER JOIN ASSOC_IGROUP_IOBJECT
Great! You're right. I am linking incorrectly, but to fix it is another
story. Writing path expressions is still somewhat of an enigma. I even
have a diagram, but it's just going to take some work. Any ideas? Thanks a
bunch for the help.
Gelhar, Wallace Joseph [EMAIL PROTECTED] wrote in
Still no clue on what is wrong with this.
- Original Message -
From: [EMAIL PROTECTED]
Date: Friday, October 31, 2003 3:19 pm
Subject: Re: RE: Another silly newbie mapping question
Thank you Robert, but Offers are permanent pieces of information
in the database whereas OrderItems
and I want to
understand this just for the sake of understanding.
JohnE
- Original Message -
From: [EMAIL PROTECTED]
Date: Sunday, November 2, 2003 5:24 pm
Subject: Re: RE: Another silly newbie mapping question
Still no clue on what is wrong with this.
- Original Message
I have worked out much harder mapping problems then this, but for some reason I am
still a bit new on this stuff and making no headway. I would appreciate a more
seasoned glance.
Problem: OfferVO is not being materialized after succesfully retrieving the
Collection of OrderItemVO by using
implementation.
From the archives it seemed ok to map multiple primary keys to one primary key.
- Original Message -
From: [EMAIL PROTECTED]
Date: Friday, October 31, 2003 2:49 am
Subject: Re: Another silly newbie mapping question
Still no luck. I noticed that my primary key order might
silly newbie mapping question
I give up for the night. BTW I am using Release Candidate 2.
Not sure it matters, but I am using
PersistentFieldClass=org.apache.ojb.broker.metadata.fieldacc
ess.PersistentNestedFieldMaxPerformanceImpl so that I could
use '-' Single Table
plum out of them.
JohnE
- Original Message -
From: Robert J Celestino [EMAIL PROTECTED]
Date: Friday, October 31, 2003 10:11 am
Subject: RE: Another silly newbie mapping question
Hello John,
I think you want auto-update=true instead of false here:
reference
will it appear in a
stable(ish) build that i can use for production.
Thanks,
Daniel.
- Original Message -
From: Brian McCallister [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 3:29 AM
Subject: Re: ojb newbie..
I have written three new
: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 15:03
To: OJB Users List
Subject: Re: ojb newbie..
I had a look at the odmg tutorial, and found the bit about updateing
persistent objects outside of a transaction very useful!
However, i cant
get it to work.
Where
hi,
i downloaded ojb1.0-rc4, unziped it and discovered, there are plenty of
examples in the src/test folder. i hope i can learn ojb from the
examples(besides tutorial 1, 2 and 5) given. but, they are all scattered
around... how do i inter-related them? are there any more documentation
describing
I have written three new tutorials, in CVS, introducing mapping, the PB
api, and the ODMG api. As so many things refer back to the current
tutorials they are not published on the site yet.
I have them up for review purposes on my personal site, and they all
work (I think). You are welcome to
Hi,
another question
if I put the jar-files (db-ojb-1.0.rc3.jar et al) into my WEB-INF/lib, then my
app never gets a broker when it tries to:
mBroker = PersistenceBrokerFactory.
defaultPersistenceBroker();
BUT if i put all the jars into $TOMCAT_HOME/common/lib, then
I've seen reference in the archives to the problem below but haven't
found the answer.The torque-3.0.1 jar is in ./lib where as best I
can tell it should be. I get the same thing when running
./bin/build.sh prepare-testdb. Thanks for any help.
-Gary
Gary Moore
[EMAIL PROTECTED]
[EMAIL
);
Regards.
- Original Message -
From: [EMAIL PROTECTED]
To: OJB Users List
Sent: Wednesday, September 03, 2003 10:37 PM
Subject: Re: newbie Q: Update creates new object - DISREGARD
have it partially working now.
Regards
Ross Rotherham
- Original Message -
From
Hi,
have a look on SimpleDateFormat (use YYY-M-d).
- Original Message -
From: Raoul Markus
To: OJB Users List
Sent: Monday, September 01, 2003 8:47 PM
Subject: newbie q: Criteria for java.util.Date
Hi,
I tried the following code, but this query didn't return any hits
Have a problem with updates.
the record that I want to update is altered and then stored in the cache with a new id
but the changes are not written to the DB. The original record is no longer displayed.
When I try to view the altered record with the new id it doesn't exist.
Any help for where
have it partially working now.
Regards
Ross Rotherham
- Original Message -
From: [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 1:03 PM
Subject: newbie Q: Update creates new object
Have a problem with updates.
the record that I want
3:47 PM
Subject: newbie q: Criteria for java.util.Date
Hi,
I tried the following code, but this query didn't return any hits:
public static Collection getSessionsOfDay(DBConnector pDbconnector,Date
pDateHeld, String pUser) {
...
tCrit.addEqualTo(DATE_HELD, pDateHeld
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!
Hello,
yes I tried that, but only single quotes ('), double quotes works
fine.
Thanks
Lasse
[EMAIL PROTECTED]
01.09.03 16:43
Bitte antworten an OJB Users List
An: [EMAIL PROTECTED]
Kopie:
Thema: RE: Newbie ODMG-API problem
Hello Lasse,
-Original
Hi everybody,
after playing around with the PB-API for a while, I started trying
the
ODMG-API today. But I have some difficulties with the OQL and
there aren't
much information on the odmg.org site. :(
I have two entries in my db-table, the BEN_IDs are LAMBREC and
AAA
but with the query
Hello Lasse,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
I have two entries in my db-table, the BEN_IDs are LAMBREC and
AAA
but with the query below I still get both, no matter what I enter
as benId
in the query. What am I doing wrong?
Have you tried
Hi,
I tried the following code, but this query didn't return any hits:
public static Collection getSessionsOfDay(DBConnector pDbconnector,Date
pDateHeld, String pUser) {
...
tCrit.addEqualTo(DATE_HELD, pDateHeld);
...
Query tQuery = new
I recommend putting the repository.xml and OJB.properties in
WEB-INF/classes/
That puts it in the classpath for a servlet, no problems.
Weird that tomcat looks in windows directories.
-Brian
On Tuesday, August 26, 2003, at 05:45 PM, Martin Smith wrote:
I have managed to get OJB working in a
]
Sent: Tuesday, August 26, 2003 11:45 PM
Subject: newbie - can't find repository xml files
I have managed to get OJB working in a stand-alone app - but now I want to
get it working under Tomcat.
The error I am getting is:
Caused by: org.apache.ojb.broker.metadata.MetadataException: Could
Hi all,
I am new to the OJB and was trying out the tutorials. I am able to run the
JDO tutorial fine connecting to a MySQL db. In order to understand OJB
better, I tried to duplicate the same tutorial in a different directory.
The following output shows the error I am getting.. I have no idea
seems to be
C:\WINDOWS\system32\.
Cheers,
Charles
-Original Message-
From: Martin Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:45 PM
To: [EMAIL PROTECTED]
Subject: newbie - can't find repository xml files
I have managed to get OJB working in a stand-alone app
,
depending on how tomcat was launched!
-Original Message-
From: Charles Anthony [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 07:15
To: 'OJB Users List'
Subject: RE: newbie - can't find repository xml files
Hi,
Is Tomcat installed in a directory with spaces in ? e.g. C:\Program
Files
/my.domain.package
I don't like having to specify the exact location to my xml files, but I can
live with it for now.
Once again, many thanks.
Martin
-Original Message-
From: Martin Smith [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 12:04
To: OJB Users List
Subject: RE: newbie - can't find repository
user list, may be somebody give you a better
soluiton ...
Regards.
- Original Message -
From: Martin Smith
To: OJB Users List
Sent: Wednesday, August 27, 2003 1:03 PM
Subject: RE: newbie - can't find repository xml files
My Tomcat dir was as you suggested in Program Files. I
I have managed to get OJB working in a stand-alone app - but now I want to
get it working under Tomcat.
The error I am getting is:
Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not read
repository class descriptor data, using repository: repository.xml:
Hello all,
I'm using the PB API and can store a simple object to a table. Even
though table has a primary key constraint on the id column, if I try to
store a different object with the same id, there is no primary key
constraint violation. In fact, OJB _UPDATES_ the existing matching row
in
.
Ron Gallagher
Atlanta, GA
[EMAIL PROTECTED]
From: Anthony E. Carlos [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:47:19 EDT
To: [EMAIL PROTECTED]
Subject: newbie question
Hello all,
I'm using the PB API and can store a simple object to a table. Even
though table has a primary key
Subject: Re: newbie question
Anthony --
There are two versions of the store method provided by the PersistenceBroker
store(Object)
store(Object,ObjectModification)
It appears that you're using the first version. In this case, ojb will
first do a select against your db to see if the record
Hi All
I am currently exploring OJB for use in my application,
One major concern that I have is how to generate the primary key !
WE have a table as follows
Create table xRef {
XRefID Varchar2(10) Primary Key
)
Values for XRefID are generated by a function
Thank you.
-Original Message-
From: Thomas Mahler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:35 PM
To: OJB Users List
Subject: Re: FW: newbie question
I assume you are talking about Jakarta Slide?
Jakarta Slide is a CMS engine which provides it's own abstraction
: [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 9:57 PM
Subject: newbie: ODMG vs. JDO
Hi All,
I am in the process of setting OJB up. Have the tutorials working.
Wondering what the reasons are for using ODMG vs. JDO
Will be running on Tomcat with struts/jsp
Hi!
from an OJB standpoint it looks OK.
If you want to use the interface IPersistenceService as an abstraction
of the concrete persistence layer I have some doubts.
The Methods
public Object getObjectByCriteria(Class clazz, Criteria criteria) and
public Collection getCollectionByCriteria(Class
Hello,
I have some big newbie problems. Maybe anybody can help! I'm trying to use
the OJB ODMG API with a MySQL Database and JBoss (3.0.6). I have followed
the steps necessary for deploying OJB on JBoss. That means I created the
ojb.sar folder in the deploy folder an included the necessary files
wanted to able to use my already configured
Datasources.
Please help a newbie!!
Julia.
[STDOUT] [org.apache.ojb.broker.core.NamingLocator] INFO:
[STDOUT] Init NamingLocator
[STDOUT] [org.apache.ojb.broker.core.NamingLocator] INFO:
[STDOUT] Properties for creating the initial context: null
[STDOUT
Hi.
I'm quite new to ojb I am trying to understand a bit more about the concept. I
am mostly interresed in jdo
anyway here are a few things that I came across as newbie I'm sure core
developer are not reading and browsing the site on a daily base :)
About the front page the last link
On Sunday, June 22, 2003, at 06:49 AM, Kees Jongenburger wrote:
when developing via jdo is it alway's required to edit the
repository/create
sql schema's in order to create new objects or can i choose a mapping
strategy and let ojb to the rest?
The only general forward engineering type tool I am
Hi
When reading the beer4all example, I remark that the use of OJB is done in
the service layer.
My question is:
Why there is no separated persistence layer that can be implemented by OJB
(or other)?
Can't we make, in OJB, an implementation of an interface like
public interface
Hi Ilia,
The Interface you describe comes very close to the OJB Interface
PersistenceBroker:
http://db.apache.org/ojb/api/org/apache/ojb/broker/PersistenceBroker.html
As The Beer4all example is meant as a simple Struts + OJB tutorial there is
no need to introduce an additional service interface.
Thanks Thomas!
Thomas Mahler wrote:
Hi Tina,
Tina Tsui wrote:
Hello,
I've ran junit against Hypersonic successfully, but when I ran it
against PostgreSQL I get some failures.
I'm using PostgreSQL 7.3.3, ojb 1.0.rc3, compiled with jsdk 1.4.01 .
Any help would be greatly appreciated.
Here
updated).
Just my two cents,
Theo Niemeijer.
-Oorspronkelijk bericht-
Van: Denis Avdic [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 21:34
Aan: OJB Users List
Onderwerp: Re: [Newbie] deleting objects in inverse relationship
No takers on this?
I could not find
I'm new to OJB and have researched the mailing list and the information
on the website. I can read and write to individual tables using code
and repository [at bottom] like so:
Criteria crit = new Criteria();
crit.addEqualTo(userid, userid);
Query q = QueryFactory.newQuery(ApplicationUser.class,
I'm a relative newbie to OJB, but i'll give this one a whirl.
See comments preceded w/ pgm:
-Original Message-
From: charles grohowski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 3:16 PM
To: OJB Users List
Subject: Newbie OJB problem
Hi,
I recently set up OJB to work
Hi,
I recently set up OJB to work with a MySQL database and am having a problem storing an
UserRoles object I created. Here are snippets from the repository_user.xml and other
important files.
repository_user.xml:
class-descriptor
class=ojb.Users
table=users
field-descriptor
Hi,
I recently set up OJB to work with a MySQL database and am having a problem storing an
UserRoles object I created. Here are snippets from the repository_user.xml and other
important files.
repository_user.xml:
class-descriptor
class=ojb.Users
table=users
field-descriptor
Hello,
a couple of Newbie question regarding how to handle non-decomposed m:n
mappings using odmg api.
I'm trying to setup a non-decomposed m:n association pretty much along the
lines of the example of tutorial 3.
I'm running SDK1.4.0, OJB-1.0.rc1, MySql Ver 11.11 Distrib 3.23.52
need to rerun the build, how do I avoid creating all the example
tables?
I apologize for the newbie questions. I'm climbing a steep learning
curve, and I'm probably not being as patient as I should be. Help me
out, and I promise I'll find much more interesting questions soon enough.
Best
of repository-database.xml.
-Original Message-
From: Brill Pappin [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 9:50 PM
To: OJB Users List
Subject: Re: newbie questions about ojb setup with my database
I've got a similar questions about those tokens.
I'm at the point of deploying the libs
On Sun, Mar 30, 2003 at 06:22:07PM -0500, Michael Harrison wrote:
When I want to use OJB to connect to my own production db, do I need to
run the build again, against a new build.xml file; or is it already set
No, you don't need to run the build again.
up to use MySQL, and I only have to
Hi,
my first steps with ojb. Some questions have arised.
I post these because it is currently not possible to browse the archive
under
http://archives.apache.org/eyebrowse/[EMAIL PROTECTED]
org.
All message bodies are empty :-(
I want to use ojb with a sample oracle schema. I wonder where to
All,
After a while, I am not sure that I have really understood the difference
between ODMG transactions and PersistenceBroker Transactions.
I know there is a FAQ (What is the difference between the PB API and ODMG .)
but I don't understand completely (The PB keeps no transactional
in the database.
the ODMG transaction is implemented in OJB.
-Original Message-
From: Emmanuel Dupont [mailto:[EMAIL PROTECTED]
Sent: 26 March 2003 15:50
To: OJB Users List
Subject: Newbie : ODMG / PersistenceBroker
All,
After a while, I am not sure that I have really understood
All,
What is the best way to perform a select * request.
QuesryByCriteria is not wonderful is there anything else ??
Tx !
This is described in the OJB 's tutorial.
/*manager is instanceOf PeristenceManager*/
Query query = manager.newQuery(MaClasse.class)
Collection results = (Collection)query.execute();
This code works with the C/S API and JDO
Alexandre Touret
Emmanuel Dupont wrote:
All,
What is the best way
All,
1)
I am going to choose OJB for our new persistence implementation. I would
like to how if it is possible for one JDO object (one .class object) to
access to different databases ?
It is possible by calling different factory, that it ?
But what about the profile file and
I've got it running now, thanks.
The problem was that the database name in the db.open call should be set to
the jcd-alias from the repository xml - it should not be set to the
databaseName value returned from
databaseName = ( (PersistenceBrokerConfiguration)
Hi there
I am trying to learn how to use OJB.
At the moment I am not getting very far. Either I have not installed
something correctly, or I have not configured something correctly.
When I call the db.open method I get a mass of exceptions. Perhaps someone
can see where I can start looking for
Hello Peter,
-Original Message-
From: Peter Kirk [mailto:[EMAIL PROTECTED]
When I call the db.open method I get a mass of exceptions.
Perhaps someone
can see where I can start looking for the problem...
this might be a known problem. (See thread: Help : OJB, ODMG API !)
Get the
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 10. marts 2003 14:37
To: [EMAIL PROTECTED]
Subject: RE: Trying to get OJB up and running (newbie)
And here is the first part of some output I see (which comes
from inside the
open method
Hello Peter,
-Original Message-
From: Peter Kirk [mailto:[EMAIL PROTECTED]
It seems that the tutorial stuff has extra things defined in
the xml files
(junit tests and such?). Anyway it seemed a little confusing
to me. I just
wanted a dead simple first try - a hypersonic database
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 10. marts 2003 16:23
To: [EMAIL PROTECTED]
Subject: RE: Trying to get OJB up and running (newbie)
Hello Peter,
-Original Message-
From: Peter Kirk [mailto:[EMAIL PROTECTED]
Also, I
I'm testing the ODMG layer with this example:
/**
* Update the Traente instance on the database
*/
public void update() {
Database db = odmg.newDatabase(); // the current DB
Transaction tx = null;
//open database
try {
Hi,
- Original Message -
From: Farnea Massimiliano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 12:58 PM
Subject: NEWBIE: cannot update object with ODMG
I'm testing the ODMG layer with this example:
/**
* Update the Traente instance on the database
-Messaggio originale-
Da: Guido Beutler [mailto:[EMAIL PROTECTED]
Inviato: giovedì 6 marzo 2003 13.08
A: OJB Users List
Oggetto: Re: NEWBIE: cannot update object with ODMG
Hi,
- Original Message -
From: Farnea Massimiliano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday
- Original Message -
From: Christopher C Worley [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 4:10 PM
Subject: Re: Newbie question - Unable to open database
Joshua,
Add jcd-alias attribute to jdbc-connection, set it equal to default
Hi Bill,
Bill Bug wrote:
Hi All,
I've been pouring over the Jakarta-OJB docs this list for info on
whether OJB has support for persisting object fields into Postgres
geometric type columns?
OJB supports all datatypes known to JDBC:
http://db.apache.org/ojb/jdbc-types.html
If you need
%20all%20classes%20on%20the%
2 0same%20table
cheers,
Thomas
-Original Message-
From: shivaken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 10:33 AM
To: OJB Users List
Subject: newbie question: OJB cannot treat subclass as superclass?
I'm using polymorphism
();
}
with the patch also 'new PBKey(default)' will work.
HTH
regards,
Armin
- Original Message -
From: Jesse Vitrone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 16, 2003 6:01 PM
Subject: newbie setup problems
I'm trying to set up a simple test to try out OJB with, but I'm having
Dear Pals,
I was following the OReilly tutorial on OJB. But the
file I attached with this mail does not compile because the compiler cant
find PersistenceBrokerFactory and QueryFactory
class. I have tested the torque-3.0.jar file but it does not contain these two
classes. Which jar file
Dear Pals,
I was following the OReilly tutorial on OJB. But the
file I attached with this mail does not compile because the compiler
cant find PersistenceBrokerFactory and QueryFactory class. I have tested the torque-3.0.jar file
but it does not contain these two classes. Which jar file
Dear Pals,
I was following the OReilly tutorial on OJB. But the
file I attached with this mail does not compile because the compiler
cant find PersistenceBrokerFactory and QueryFactory class. I have tested the torque-3.0.jar file
but it does not contain these two classes. Which jar file
:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 2:45 AM
To: OJB Users List
Subject: Re: newbie problem
Hi Muhammad,
please download the binary distribution, and follow the steps of the
file doc/quickstart.html.
You should also consider to read the other getting started tutorials and
the faq
101 - 183 of 183 matches
Mail list logo