Re: Behavior of ODMG personality and many-to-many relationships and default cache implementation

2004-04-02 Thread Sean Dockery
No takers? Sean Dockery wrote: Consider the following classes that represent a many-to-many relationship: public class Category { private Collection products; public Collection getProducts() { return products; } public void setProducts(Collection newProducts) {

Re: Behavior of ODMG personality and many-to-many relationships and default cache implementation

2004-04-02 Thread Sean Dockery
No takers? Sean Dockery wrote: Consider the following classes that represent a many-to-many relationship: public class Category { private Collection products; public Collection getProducts() { return products; } public void setProducts(Collection newProducts) {

Re: What should I use for the initial value of a collection field in a new object? and a related question.

2004-04-02 Thread Sean Dockery
No recommendations? Sean Dockery wrote: I have an application that uses the ODMG personality of OJB. I query objects and collections using PersistenceBroker Criteria; the PersistenceBroker is obtained from a Transaction object (via TransactionExt). Objects are stored via a tx.lock plus a tx.m

Re: Per-criteria pathClass [was ojb-user: Query casts] 2 of 2

2004-04-02 Thread Phil Warrick
Hi Jakob, I just wanted to be sure that you now have all the files, namely src files o.a.o.b.query.Criteria.java o.a.o.b.query.SelectionCriteria.java o.a.o.b.query.BetweenCriteria.java o.a.o.b.accesslayer.sql.SqlQueryStatement.java o.a.o.b.accesslayer.sql.SqlSelectStatement.java srcTest files ojb

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Brian McCallister
Postgres users: Has anyone ever gotten the master/slave replication to actually work? -Brian On Apr 2, 2004, at 12:15 PM, Antonio Gallardo wrote: Robert S. Sfeir dijo: Leandro Rodrigo Saad Cruz wrote: I am. no problems. Ditto, no issues, use it for almost all my projects unless client can p

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Antonio Gallardo
Robert S. Sfeir dijo: > Leandro Rodrigo Saad Cruz wrote: > >>I am. no problems. >> >> >> > > Ditto, no issues, use it for almost all my projects unless client can > pay for Oracle :-) Yep. PostgreSQL is my prefered choice too, even if the client can pay for Oracle or anything else. ;-) Best Regar

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Robert S. Sfeir
Leandro Rodrigo Saad Cruz wrote: I am. no problems. Ditto, no issues, use it for almost all my projects unless client can pay for Oracle :-) R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Newbie (almost) at a standstill

2004-04-02 Thread Thomas Dudziak
On Fri, 2 Apr 2004, Brian McCallister wrote: > > Both count(*) and 'as' are in the OQL grammar I downloaded from > > ODMG.org > > yesterday. The one is in 'aggregateExpr', the other in 'projection'. > > If, as > > you say, the selection list (projectionAttributes in the grammar) is > > merely >

Re: Newbie (almost) at a standstill

2004-04-02 Thread Brian McCallister
On Apr 2, 2004, at 9:23 AM, [EMAIL PROTECTED] wrote: Thank you all for your pointers. I am well aware of the difficulty of writing good documentatioin when you are an expert in the field; sometimes ignorance is a blessing. I shall continue to report omissions or ambiguities as I find them. Much a

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Clay Mitchell
I am for about 3 projects. -Clay Martin I. Levi wrote: Hello people! Is there anybody using OJB on a PostgreSQL database? Please let me know. Greets, Martin Ivan Levi Universitat Politecnica de Catalunya Centre Tecnologic de Transferencia de Calor

Re: Newbie (almost) at a standstill

2004-04-02 Thread raphael . x . mankin
Thank you all for your pointers. I am well aware of the difficulty of writing good documentatioin when you are an expert in the field; sometimes ignorance is a blessing. I shall continue to report omissions or ambiguities as I find them. More documentation updates then I think that the docs a

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Gerhard Hipfinger
Hi, we are using ojb with postgresql 7.4.x without any problems. kr, gerhard -- openForce Information Technology GesmbH www.openforce.com Am Fre, den 02.04.2004 schrieb Martin I. Levi um 10:34: > Hello people! > > Is there anybody using OJB on a PostgreSQL database? > > Please let me know. >

Re: Configuration problem with rc6

2004-04-02 Thread Armin Waibel
Hi, Caused by: org.apache.ojb.broker.metadata.MetadataException: Can not read repository class descriptor data, using repository: repository.xml Caused by: org.apache.ojb.broker.metadata.MetadataException: Exception when reading metadata information, please check your repository.xml file indicate

Re: Configuration problem with rc6

2004-04-02 Thread Frédéric
Well, sorry ;) ! Here is the root cause : java.lang.ExceptionInInitializerError at org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(BrokerHelper.java:123) at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(PersistenceBrokerFactoryDefa

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Leandro Rodrigo Saad Cruz
I am. no problems. On Fri, 2004-04-02 at 05:34, Martin I. Levi wrote: > Hello people! > > Is there anybody using OJB on a PostgreSQL database? > > Please let me know. > > > Greets, > > > Martin Ivan Levi > > Universitat Politecnica de Catalunya > Centre Tecnologic de Transferencia de Calor

Re: Configuration problem with rc6

2004-04-02 Thread Armin Waibel
Hi Frederic, could you post the whole stack trace? It's hard to say what's going wrong from your snip. regards, Armin Frédéric wrote: Hi everyone, Switching from rc3 to rc6, i have the following configuration problem : java.lang.ExceptionInInitializeError at org.apache.ojb.broker.util.BrokerHelpe

Re: Searching in a class hierachy (ODMG) (Nudging Armin)

2004-04-02 Thread Brian McCallister
Ah, thank you for posting the mappings. Will need to nudge Armin on this, I haven't used joins to map extents before =( -Brian On Apr 2, 2004, at 5:41 AM, Keith Rogers wrote: Could you clarify what you mean by that? Here is the relevent part of the config file:

Re: Newbie (almost) at a standstill

2004-04-02 Thread Brian McCallister
Any chance you could sum up what needs improvement in the docs? As Thomas put it when I first got involved with OJB, once you get really close to it, it can be hard to see it from a newcomers perspective =( There is a *lot* to it. I am personally invested in trying to make it easy for peopl

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Thomas Dudziak
On Fri, 2 Apr 2004 [EMAIL PROTECTED] wrote: > Is there any documentation on what xdoclet does? I have not seen any. Yep, though not on the website (that will come with the 1.0). Its in the xdocs folder of the OJB bin or source (rc6 or CVS version). You then build the html with 'ant htmldoc' (int

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread raphael . x . mankin
Is there any documentation on what xdoclet does? I have not seen any. |-+-> | | "Matthias Gottschlich"| | | <[EMAIL PROTECTED]| | | tionary.de> | | |

Re: Newbie (almost) at a standstill

2004-04-02 Thread raphael . x . mankin
So, apart from one glitch I think that the other points are matters of clearer documentation. It is not clear from the Getting Started doc just what one has to do and in what order. There are also inconsistencies betwen the default build.properties and *.profiles as towhich variables are required.

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Thomas Dudziak
On Fri, 2 Apr 2004, Matthias Gottschlich wrote: > an anonymous foreign key field has one special behaviour. There is no > class member in the java class. > Because this, i couldn't declare a ojb.field for this anonymous fk-field. > The ojb.collection (or ojb.reference) can't point tho this class

Transaction isolation

2004-04-02 Thread Frédéric
Hi everyone, With the rc3 version and ODMG API, it seems that there are some transaction isolation problem. I have seen on OJB apache website that the problem was known : "ODMG implicit locking is partly implemented but does currently not maintain transaction isolation properly. To achieve safe tr

Configuration problem with rc6

2004-04-02 Thread Frédéric
Hi everyone, Switching from rc3 to rc6, i have the following configuration problem : java.lang.ExceptionInInitializeError at org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey... I have replaced the files repository.dtd and ojb.properties with the new files... Any help would be useful :)

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Matthias Gottschlich
an anonymous foreign key field has one special behaviour. There is no class member in the java class. Because this, i couldn't declare a ojb.field for this anonymous fk-field. The ojb.collection (or ojb.reference) can't point tho this class member as foreign key field -because it isn't there. So

Re: Newbie (almost) at a standstill

2004-04-02 Thread Brian McCallister
repository.xml wasn't copied in rc5, was a problem, has been fixed in rc6. If you want to patch manually, change the ant copy in build.xml to copy respositor*.xml instead of repository_*.xml =) DB profiles are not copied on purpose, you need to copy the relevant settings into build.propertie

AXgen 2.1 released

2004-04-02 Thread Peter Wieland
Hi everyone, it may interest you, especially those of you that are already using AXgen for generation of OJB artefacts, that a new AXgen release (AXgen 2.1) is available for download at http://axgen.sourceforge.net. Changes in new version: - enhanced OJB templates - completely new documentation

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Thomas Dudziak
On Fri, 2 Apr 2004, Matthias Gottschlich wrote: > The next TO-DO for the ojb-team could be to enhance the xdoclet-module, > so that it can handle anonymous foreign keys on the collection or on the > reference side. Please elaborate this in more detail ! What is your problem/wish here ? An

Re: Newbie (almost) at a standstill

2004-04-02 Thread raphael . x . mankin
A status report on my problems. I went back to square one and managed to get things to work. However, in the process I found some glitches. Maybe they are finger trouble on my part, maybe they are omissions in the code or the documentation. 1.The variable ${jcdAlias} is used in repository_d

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Matthias Gottschlich
The next TO-DO for the ojb-team could be to enhance the xdoclet-module, so that it can handle anonymous foreign keys on the collection or on the reference side. regards Matthias Armin Waibel wrote: [EMAIL PROTECTED] wrote: As a side issue on documentation. I read this article on how to us

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Brian McCallister
Yep, almost exclusively. -Brian On Apr 2, 2004, at 4:01 AM, Andreas Bohnert wrote: yes, we do. no problems so far... regards andreas Martin I. Levi wrote: Hello people! Is there anybody using OJB on a PostgreSQL database? Please let me know. Greets, Martin Ivan Levi Universitat Politecnica

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Armin Waibel
[EMAIL PROTECTED] wrote: As a side issue on documentation. I read this article on how to use anonymous keys and I was left totally at a loss on what the associated code should loook like. Maybe a little example would be useful. put it on my todo-list ;-) Thanks! regards, Armin |-+-

Re: Searching in a class hierachy (ODMG)

2004-04-02 Thread Keith Rogers
Could you clarify what you mean by that? Here is the relevent part of the config file:

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread raphael . x . mankin
As a side issue on documentation. I read this article on how to use anonymous keys and I was left totally at a loss on what the associated code should loook like. Maybe a little example would be useful. |-+> | | "Armin Waibel" | |

Re: Help M-To-N relation update => deletion of referenced objects .

2004-04-02 Thread Armin Waibel
Hi Thierry, I will add a note in the docs for m:n relations. regards, Armin Thierry Hanot wrote: Thks Armin I 'll try that . But in the documentation on a M-To-N relation or 1-N relation. When we are using auto-update = false ( aka link ) and auto-delete=false ( aka link ) .The referenced object

Re: relations and (additional) foreign keys in classes

2004-04-02 Thread Armin Waibel
Hi Matthias, for 1:1 relation OJB has a feature called 'anonymous key' http://db.apache.org/ojb/howto-use-anonymous-keys.html Thus you don't need to declare the FK in your class, only in metadata and DB. For single JVM 2-tier (no serialized persistent capable objects) projects it is possible u

Any one using PostgreSQL and OJB ?

2004-04-02 Thread Martin I. Levi
Hello people! Is there anybody using OJB on a PostgreSQL database? Please let me know. Greets, Martin Ivan Levi Universitat Politecnica de Catalunya Centre Tecnologic de Transferencia de Calor - To unsubscribe, e-mail:

Re: Any one using PostgreSQL and OJB ?

2004-04-02 Thread Andreas Bohnert
yes, we do. no problems so far... regards andreas Martin I. Levi wrote: Hello people! Is there anybody using OJB on a PostgreSQL database? Please let me know. Greets, Martin Ivan Levi Universitat Politecnica de Catalunya Centre Tecnologic de Transferencia de Calor

relations and (additional) foreign keys in classes

2004-04-02 Thread Matthias Gottschlich
Hi there, we are coming from j2ee-cmp and want to change to another o/r-mapping tool (perhaps ojb). In the Documentation i read, that i have to declare the foreign key as an extra member of my class, if i want to use a reference to the other class. Is this necessary? I came from EJB-CMP/CMR. Th

RE: Help M-To-N relation update => deletion of referenced objects .

2004-04-02 Thread Thierry Hanot
Thks Armin I 'll try that . But in the documentation on a M-To-N relation or 1-N relation. When we are using auto-update = false ( aka link ) and auto-delete=false ( aka link ) .The referenced objects should not be updated nor inserted. But instances could be delete. It seems to be a bit weird to