ODMG Query over objects always returns a Collection (DList)?

2003-03-24 Thread Edson Carlos Ericksson Richter
Hi! Table: UsersTable (id, username, password) -> mapped to User object with same properties. where id is Primary Key, and username is a unique key. Well, if I query "select user from User where username = $1 and password = $2", ODMG will always return a collection when I issue query.execute()?

Re: ODMG Query over objects always returns a Collection (DList)?

2003-03-24 Thread Robert S. Sfeir
I should add that a DList or Collection of some type is returned is actually a good thing. Why? Take a scenario where you have a User object and we're returning a User object from OJB. You use that object all over your code. One day you decide to change the User object and call is People.

Re: ODMG Query over objects always returns a Collection (DList)?

2003-03-24 Thread Robert S. Sfeir
The Collection (DList which is changeable from the OJB.properties) DOES contain a User object. On Friday, March 21, 2003, at 12:38 PM, Edson Carlos Ericksson Richter wrote: Hi! Table: UsersTable (id, username, password) -> mapped to User object with same properties. where id is Primary Key,

ODMG Query over objects always returns a Collection (DList)?

2003-03-23 Thread Edson Carlos Ericksson Richter
Hi! Table: UsersTable (id, username, password) -> mapped to User object with same properties. where id is Primary Key, and username is a unique key. Well, if I query "select user from User where username = $1 and password = $2", ODMG will always return a collection when I issue query.execute()?