This repository was archived by the owner on Oct 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#44 - ENH: Add PLocale to support java.util.Locale property types
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package io.ebean.typequery; | ||
|
||
import java.util.Locale; | ||
|
||
/** | ||
* Locale property. | ||
* | ||
* @param <R> the root query bean type | ||
*/ | ||
public class PLocale<R> extends PBaseString<R, Locale> { | ||
|
||
/** | ||
* Construct with a property name and root instance. | ||
* | ||
* @param name property name | ||
* @param root the root query bean instance | ||
*/ | ||
public PLocale(String name, R root) { | ||
super(name, root); | ||
} | ||
|
||
/** | ||
* Construct with additional path prefix. | ||
*/ | ||
public PLocale(String name, R root, String prefix) { | ||
super(name, root, prefix); | ||
} | ||
|
||
} |