Skip to content

Commit

Permalink
copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ipolevoy committed Apr 7, 2018
1 parent b1da84b commit 6c2fb46
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,23 @@
import java.lang.annotation.ElementType;

/**
* Place on a child model of the One-to-many relationship if the tables do not follow
* the ActiveJDBC naming conventions.
*
* <p>
* This annotation will do exactly the same as {@link HasMany}, but is placed on a 'child' side of a relationship.
* </p>
*
* <p>
* There is no need to add both {@link HasMany} and {@link BelongsTo} on the two related models. Just one is
* fully sufficient.
* </p>
*
* @author Igor Polevoy
*
* @see HasMany
*
* @since 1.0
*/

@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@
import java.lang.annotation.Target;

/**
* Use this annotation for 1:n associations on the model of the 1-side, if the foreign key constraints don't follow
* ActiveJDBC conventions. If the navigation between the two models is from child to parent model, you can use
* {@link BelongsTo}. But you shouldn't use both for a pair of associated models.
* <p>
* Place on a parent model of the One-to-many relationship if the tables do not follow
* the ActiveJDBC naming conventions.
* </p>
* <p>
* This annotation will do exactly the same as {@link BelongsTo}, but is placed on a 'parent' side of a relationship.
* </p>
*
* <p>
* There is no need to add both {@link HasMany} and {@link BelongsTo} on the two related models. Just one is
* fully sufficient.
* </p>
*
* @author Christof Schablinski
*
Expand Down

0 comments on commit 6c2fb46

Please sign in to comment.