mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#651 - ENH: Add type support for java.nio.file.Path ... such that it stores the underlying URI as VARCHAR/string
This commit is contained in:
@@ -14,7 +14,7 @@ public class ScalarTypePathTest {
|
||||
@Test
|
||||
public void convertFromDbString() throws Exception {
|
||||
|
||||
Path path = Paths.get(".");
|
||||
Path path = Paths.get("/tmp");
|
||||
|
||||
String asString = type.convertToDbString(path);
|
||||
Path converted = type.convertFromDbString(asString);
|
||||
@@ -25,7 +25,7 @@ public class ScalarTypePathTest {
|
||||
@Test
|
||||
public void formatAndParse() throws Exception {
|
||||
|
||||
Path path = Paths.get(".");
|
||||
Path path = Paths.get("/tmp");
|
||||
|
||||
String asString = type.formatValue(path);
|
||||
Path converted = type.parse(asString);
|
||||
|
||||
Reference in New Issue
Block a user