Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit

Permalink
#44 - ENH: Add PLocale to support java.util.Locale property types
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Nov 29, 2018
1 parent a584480 commit f7d3aa3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.ebean</groupId>
<artifactId>ebean-querybean</artifactId>
<version>11.24.2-SNAPSHOT</version>
<version>11.25.1-SNAPSHOT</version>

<parent>
<groupId>org.avaje</groupId>
Expand Down
29 changes: 29 additions & 0 deletions src/main/java/io/ebean/typequery/PLocale.java
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);
}

}

0 comments on commit f7d3aa3

Please sign in to comment.