Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Table name from inheritance hierarchy.



Hi.

How can I access the table name from the org.eclipse.persistence.descriptors.ClassDescriptor in a org.eclipse.persistence.config.DescriptorCustomizer?

My hierarchy looks like this:

@Entity
@Table(name = "BUILDINGFUNCTION")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public abstract class Function extends AbstractEntity {
}

@Entity
@DiscriminatorValue("AGRICULTURAL")
@Historical
@Customizer(AnnotatedCustomizers.class)
public class AgriculturalBuilding extends Function {
}

And it's the in AgriculturalBuilding descriptor that I want to find the BUILDINGFUNCTION table name defined by the parent.

Everything I look at seems to be null at this point... when @Customizer for AgriculturalBuilding is called that is.

 /Magnus Heino

Back to the top