public @interface BelongsTo
This annotation will do exactly the same as HasMany, but is placed on a 'child' side of a relationship.
There is no need to add both HasMany and BelongsTo on the two related models. Just one is
Class<? extends Model>
public abstract Class<? extends Model> parent
public abstract String foreignKeyName
Copyright © 2019 JavaLite. All rights reserved.