@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Inheritance
Example:
@Entity
@Inheritance(strategy=JOINED)
public class Customer { ... }
@Entity
public class ValuedCustomer extends Customer { ... }
| Modifier and Type | Optional Element and Description |
|---|---|
InheritanceType |
strategy
The strategy to be used
|
public abstract InheritanceType strategy
Copyright © 2024. All rights reserved.