Re: Using alternate key instead of primary key when relating an class descriptor with a collection descriptor

2004-11-24 Thread Sean Dockery
you want is to add a user id > attribute to the UserRole class and use the inverse-foreignkey attribute > in the user roles' collection descriptor. > > Pulat > > Sean Dockery wrote: >> Hello. >> >> I've searched the gmane archives, but I was unable t

Re: Using alternate key instead of primary key when relating an class descriptor with a collection descriptor

2004-11-24 Thread Sean Dockery
that prevent this would be my main concern > > Sean Dockery wrote: > >>Hello. >> >>I've searched the gmane archives, but I was unable to find any messages >>related to my question. >> >>Suppose that I have the following classes... >>

Using alternate key instead of primary key when relating an class descriptor with a collection descriptor

2004-11-24 Thread Sean Dockery
Hello. I've searched the gmane archives, but I was unable to find any messages related to my question. Suppose that I have the following classes... public class User { private Integer id; // primary key field private String username; // alternate key field private Collection userRol

Re: VARCHAR primarykey based upon OJB HighLow sequence in SQL Server 2000

2004-06-09 Thread Sean Dockery
seeded the OJB_HL_SEQ table with a record having a max_key value of $F000 (in decimal form) and everything worked as expected. Far easier than I expected. :-) "Sean Dockery" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am working with

VARCHAR primarykey based upon OJB HighLow sequence in SQL Server 2000

2004-06-08 Thread Sean Dockery
Hello, I am working with a content-heavy database application that uses OJB 1.0RC5 on SQL Server 2000. Because the content is part of the value-proposition for customers to purchase our application, we would like a means of easily identifying what (template) data came from us versus what data was

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

2004-04-06 Thread Sean Dockery
Armin Waibel wrote: Hi Sean, Sean Dockery wrote: Still no recommendations? (I'm posting this through Gmane; can everyone on the mailing list read this?) Sorry for the late reply, but I'm overwhelmed with posts and todo's. No worries. I was just beginning to wonder if my p

Order of elements in the repository_user.xml file

2004-04-06 Thread Sean Dockery
Are the class-descriptor nodes in the repository_user.xml file order dependent? I have a large-ish file that I would like to alphabetize in order to locating relevant class-descriptor nodes, but I'd hate to find out that the dependent nodes had to be declared before nodes that used them (in a

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

2004-04-06 Thread Sean Dockery
Still no takers? :-( Sean Dockery wrote: 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

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

2004-04-06 Thread Sean Dockery
Still no recommendations? (I'm posting this through Gmane; can everyone on the mailing list read this?) Sean Dockery wrote: No recommendations? Sean Dockery wrote: I have an application that uses the ODMG personality of OJB. I query objects and collections using PersistenceBroker Cri

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

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

2004-03-31 Thread Sean Dockery
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) { products

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

2004-03-31 Thread Sean Dockery
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.markDirty call. The application uses the

Re: Object references... Fetched in a separate thread?

2004-02-21 Thread Sean Dockery
ing on this problem off and on for about a week now; if anyone knows of a solution, please post it here. If I find the solution, I'll do the same. Thanks. > regards, > Armin > > Sean Dockery wrote: > > Unfortunately, I'm stuck on version 0.9.8. The application t

Re: Object references... Fetched in a separate thread?

2004-02-21 Thread Sean Dockery
9 172 2324824 D-44143 Dortmund Telefax: +49 231 5349423 On Sat, 21 Feb 2004 00:18:55 -0700 "Sean Dockery" <[EMAIL PROTECTED]> wrote: > Hello there. > > I've had a curious experience recently with OJB, and I was wondering if > someone could confirm my speculatio

Re: Object references... Fetched in a separate thread?

2004-02-21 Thread Sean Dockery
Sean: > > AFAIK, this would not happen. BTW, what version are you using? > > Best Regards, > > Antonio Gallardo > > Sean Dockery dijo: > > Hello there. > > > > I've had a curious experience recently with OJB, and I was wondering if > > someone

Object references... Fetched in a separate thread?

2004-02-20 Thread Sean Dockery
Hello there. I've had a curious experience recently with OJB, and I was wondering if someone could confirm my speculations about the behaviour. Suppose I have two objects... Product and ProductCategory. The Product object carries both a productCategoryId field as well as a reference field produ

Re: Questions about using Connection objects from a PB, and how long is Iterator from PB.getIterByQuery valid

2004-01-20 Thread Sean Dockery
That's great, Armin. Thanks. "Armin Waibel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Sean, > > Sean Dockery wrote: > > > Two questions... > > > > 1) Getting connections from a PersistenceBroker... > > > >

Questions about using Connection objects from a PB, and how long is Iterator from PB.getIterByQuery valid

2004-01-20 Thread Sean Dockery
mmitTransaction(); while(iterator.hasNext()) { Product product = (Product) iterator.next(); // blah blah blah } Is it valid to use the iterator after the transaction has been committed (i.e.: broker has been closed)? Thanks for your time... -- Sean Dockery Software Developer

Safe to mix ODMG and PB?

2004-01-14 Thread Sean Dockery
If my application is using the ODMG personality of OJB a la... Implementation odmg = OBJ.getInstance(); ... Is it safe for other parts of my code to use a PersistenceBroker like this... PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker(); try { // ... } finally {

Re: How to program against the ODMG personality correctly?

2004-01-13 Thread Sean Dockery
query vs. identity) preference? Thanks again, Philippe. I look forward to your reply. "Philippe Hacquin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Sean, > > I'm not an OJB-ODMG expert, but maybe I can help > > Sean Dockery wrote: > &

Re: Real world OJB applications

2004-01-13 Thread Sean Dockery
or PB personalities are used more often? I've read (and reread) the pages where it talks about what using ODMG gets you, but it doesn't easily translate into what the correlating pitfall in using PB is. "Thomas Mahler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT

Re: Real world OJB applications

2004-01-13 Thread Sean Dockery
d more > details on this page: http://db.apache.org/ojb/links.html#OJB tutorials. > > cheers, > thomas > > Sean Dockery wrote: > > Are there any OJB applications available with source on the web? > > > > > > > > > > ---

Re: How to program against the ODMG personality correctly?

2004-01-10 Thread Sean Dockery
I posted this right around new years, but I have not seen any responses since then and some of these questions are still eating at me. Can anyone provide any answers to some of the questions that I've asked? Thanks in advance. "Sean Dockery" <[EMAIL PROTECTED]> wrote i

Re: Real world OJB applications

2004-01-10 Thread Sean Dockery
> persistent store. It doesn't use > all the features of OJB but has it integrated as an optional (preferred) > persistent store mechanism. > > > At 01:23 PM 1/9/2004, Sean Dockery wrote: > >Are there

Real world OJB applications

2004-01-09 Thread Sean Dockery
Are there any OJB applications available with source on the web? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to program against the ODMG personality correctly?

2004-01-02 Thread Sean Dockery
Hello there. I'm fairly new to OJB. I've read several of the tutorials and I'm working on creating an application from scratch. Below are three classes that I wrote. One is my DAO class, the second class is an inversion-of-control interface that I'm using to populate the object after locking it

Re: Find by ID in ODMG API?

2003-12-30 Thread Sean Dockery
You can use PersistenceBroker Queries directly... http://db.apache.org/ojb/faq.html#I%20don't%20like%20OQL,%20can%20I%20use%20the%20PersistenceBroker%20Queries%20within%20ODMG? "Andreas Schildbach" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a simple "Find by ID" call,

QueryFactory.newQuery(Class, Critiera) vs. QueryByCriteria

2003-12-30 Thread Sean Dockery
The examples on the OJB web site show code that uses the following... Query query = new QueryByCriteria(Product.class, criteria); ...instead of... Query query = QueryFactory.newQuery(Product.class, critiera); Would one ever choose the former style of the latter?