I join the code of the class Address.
Here is the script to create the table T_ADDRESS:

create table T_ADDRESS (
        Id            NUMBER(10)    NOT NULL ,
        STREET        VARCHAR2(50),
        TOWN          VARCHAR2(30),
        POSTALCODE    NUMBER(10)
)
Tablespace TS_REFERENCE

The code of the test file is:

db.begin();
        
Address address = (Address) db.load(Address.class, new
Integer(5));

db.commit();

If the address I retrieve has a postalcode, I can read
the object. If the address does not have a postal
code,  it throws the exception.

Marie.

___________________________________________________________
Un nouveau Nokia Game commence. 
Allez sur http://fr.yahoo.com/nokiagame avant le 3 novembre
pour participer � cette aventure tous m�dias.

Attachment: Address.java
Description: Address.java

Reply via email to