Posted By:
Christophe_Demez
Posted On:
Thursday, August 16, 2001 07:55 AM
Hello, I have 2 questions : Question 1 ------------ I have a main class named Person. I have create several custom Java Type like class CBOAddress { String locality; String country; String street; } class Person { String name; CBOAddress personAddress; } The address is see here as a normal type and I want to persit the CBOAdress in the same database tabe than the class Person. Question 2 ------------ I have a class Person and a custom type class CB
More>>
Hello,
I have 2 questions :
Question 1
------------
I have a main class named Person.
I have create several custom Java Type like
class CBOAddress {
String locality;
String country;
String street;
}
class Person {
String name;
CBOAddress personAddress;
}
The address is see here as a normal type and
I want to persit the CBOAdress in the same
database tabe than the class Person.
Question 2
------------
I have a class Person and a custom type
class CBOCountry {
String countryName;
String isoCode;
}
We have a maximum of 200 values for country
(USA, Canada, Australia, China, ...).
We have the class
class Person {
CBOCountry country;
}
We want to avoid to have too much instance
of country and to share the instances of CBOCountry with the different
instances of Person and others classes too !
Is it possible to share this ?
Please help me
Thanks a lot
Christophe
<<Less