Skip to content

Commit

Permalink
refs #45
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-pestano committed Oct 3, 2019
1 parent 4d1e48e commit 05a4390
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public T findById(Serializable id) {
* for <code>oneToOne</code> associations the entity PK will be compared and for oneToMany association an <code>in</code> for comparing associated entities PKs.
*
* @param example An entity whose attribute's value will be used for creating a criteria
* @param usingAttributes attributes from example entity to consider.
* @param usingAttributes attributes from example entity to consider. If no attribute is provided then non null attributes will be used.
* @return A criteria restricted by example.
* @throws RuntimeException If no attribute is provided.
*/
Expand All @@ -221,7 +221,7 @@ public Criteria example(T example, Attribute<T, ?>... usingAttributes) {
*
* @param criteria a criteria to add restrictions based on the example entity.
* @param example An entity whose attribute's value will be used for creating a criteria
* @param usingAttributes attributes from example entity to consider.
* @param usingAttributes attributes from example entity to consider. If no attribute is provided then non null attributes will be used.
* @return A criteria restricted by example.
* @throws RuntimeException If no attribute is provided.
*/
Expand Down Expand Up @@ -326,7 +326,7 @@ private void addInExampleRestriction(Criteria criteria, T example, Attribute<T,
* It will use 'likeIgnoreCase' for comparing STRING attributes of the example entity.
*
* @param example An entity whose attribute's value will be used for creating a criteria
* @param usingAttributes attributes from example entity to consider.
* @param usingAttributes attributes from example entity to consider. If no attribute is provided then non null String attributes will be used.
* @return A criteria restricted by example using 'likeIgnoreCase' for comparing attributes
* @throws RuntimeException If no attribute is provided.
*/
Expand All @@ -337,7 +337,7 @@ public Criteria exampleLike(T example, SingularAttribute<T, String>... usingAttr
/**
* @param criteria a pre populated criteria to add example based <code>like</code> restrictions
* @param example An entity whose attribute's value will be used for creating a criteria
* @param usingAttributes attributes from example entity to consider.
* @param usingAttributes attributes from example entity to consider. If no attribute is provided then non null String attributes will be used.
* @return A criteria restricted by example using <code>likeIgnoreCase</code> for comparing attributes
* @throws RuntimeException If no attribute is provided.
*/
Expand Down

0 comments on commit 05a4390

Please sign in to comment.