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()?
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.
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,
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()?