how do you set bean properties when loading a object ?

2003-08-14 Thread AndreasWuest
Hi, i have some problems loading object from the database. i have a class that looks like : class Order { protected Long id; protected String name; protected String something; public void setId (Long id) { this.id = id; } public void setName (String name { this.name = name; } pub

RE: one table -> multiple classes problem

2003-08-14 Thread AndreasWuest
Hi, thanks for your answer. Correct me if i am wrong, but as far as i can read you xml files, you need to run 2 queries to get your 2 classes. I need to run 3 queries (actually there is one more address, so i need to run 4 queries) to load all the data i need from the database. This should be no

one table -> multiple classes problem

2003-08-14 Thread AndreasWuest
Hi, i have table that looks like : table order ( id, orderid, sender_name, sender_street, recipient_name, recipient_street, .. ) each order consists of some order data, the sender address and the recipient address. at the moment i have an order class that contains the send

RE: one table -> multiple classes problem

2003-08-12 Thread AndreasWuest
Hi again, one thing i forgot to ask in my last mail : storing the ojbects in the database you also need 2 db access, don't you ? you have to store each of the two classes separately ? Thanks again, Andreas > >Hi, >you can do it without problem. > >I have two classes for > one t

getObjectByQuery problem

2003-08-07 Thread AndreasWuest
Hi, i have a small problem with the getObjectByQuery method. For some reason the method does not return the object that i expect. actually i works only the first time, the second, third etc. times, it does not work anymore (i only get a empty object). my code looks like PersistenceBroker b