org.javalite.activejdbc.annotations
Annotation Type BelongsToPolymorphic
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface BelongsToPolymorphic
- Author:
- Igor Polevoy
|
Optional Element Summary |
String[] |
typeLabels
List of type labels corresponding to parent classes. |
parents
public abstract Class<? extends Model>[] parents
- List of parent classes.
- Returns:
- list of parent classes.
typeLabels
public abstract String[] typeLabels
- List of type labels corresponding to parent classes. This is a value to be stored in the
"parent_type" column of the child record. Use this to override default behavior (parent full class name).
- Returns:
- list of type labels corresponding to parent classes.
- Default:
- {}
Copyright © 2015 JavaLite. All rights reserved.