i have the following classes:
Code:
@MappedSuperClass
class Animal {
string name;
int color;
int legs;
}
class Dog extends Animal {
// i want hibernate to create columns for all the inherited properties from
// animal class
}
class Bird extends Animal {
// i want the bird table to have columns for only the name
// and color
}
class InvisiblePet extends Animal {
// i want the invisible pet table to have columns for only the name
// property
}
as you can see, i want to somehow be able to hide or disable some properties in my subclasses which was inherited from the super class so that their respective table doesnt create columns for all the properties they inherited. i'm not sure if this is possible because i've been googling for about 2-3 hours now and i still cannot find a straight answer.
reyjexter