As shown below, i have the object Car with 2 persistence attributes:
public class Car {
@Column(name = "COLOR")
protected String color;
@Column(name = "BRAND")
protected String brand;
}
All objects that extends from Car use the 2 attributes, but in some the them, i want to exclude one or all attributes. For example:
public class SpecialCar extends Car{
//how to tell here that i don't want to have Brand column
}
Thx for help