Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc28809
commit c03dd08
Showing
13 changed files
with
144 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
package org.rapidoid.jpa; | |||
|
|||
import org.rapidoid.annotation.Authors; | |||
import org.rapidoid.annotation.Since; | |||
|
|||
@Authors("Nikolche Mihajlovski") | |||
@Since("5.1.0") | |||
public interface JpaPage { | |||
|
|||
JpaPage ALL = null; | |||
|
|||
int from(); | |||
|
|||
int to(); | |||
|
|||
} |
29 changes: 29 additions & 0 deletions
29
rapidoid-jpa/src/main/java/org/rapidoid/jpa/JpaPageImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
package org.rapidoid.jpa; | |||
|
|||
import org.rapidoid.RapidoidThing; | |||
import org.rapidoid.annotation.Authors; | |||
import org.rapidoid.annotation.Since; | |||
|
|||
@Authors("Nikolche Mihajlovski") | |||
@Since("5.1.0") | |||
public class JpaPageImpl extends RapidoidThing implements JpaPage { | |||
|
|||
private final int from; | |||
private final int to; | |||
|
|||
public JpaPageImpl(int from, int to) { | |||
this.from = from; | |||
this.to = to; | |||
} | |||
|
|||
@Override | |||
public int from() { | |||
return from; | |||
} | |||
|
|||
@Override | |||
public int to() { | |||
return to; | |||
} | |||
|
|||
} |
Oops, something went wrong.