Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for BigDecimal/BigInteger storage mechanism and also s…
…aving the meta data now and have a test for that
- Loading branch information
Dean Hiller
committed
Jul 26, 2012
1 parent
150131d
commit f051acf
Showing
20 changed files
with
188 additions
and
53 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
19 changes: 2 additions & 17 deletions
19
input/javasrc/com/alvazan/orm/api/base/NoSqlEntityManagerFactory.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
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
28 changes: 28 additions & 0 deletions
28
input/javasrc/com/alvazan/orm/layer1/base/AutoCreateEnum.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.alvazan.orm.layer1.base; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public enum AutoCreateEnum { | ||
UPDATE("update"), FAIL_IF_NOT_VALID("validate"), CREATE_ONLY("create"); | ||
|
||
private static Map<String, AutoCreateEnum> mapping = new HashMap<String, AutoCreateEnum>(); | ||
static { | ||
for(AutoCreateEnum a : AutoCreateEnum.values()) { | ||
mapping.put(a.getValue(), a); | ||
} | ||
} | ||
|
||
private String value; | ||
private AutoCreateEnum(String val) { | ||
this.value = val; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public static AutoCreateEnum translate(String val) { | ||
return mapping.get(val); | ||
} | ||
} |
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
Oops, something went wrong.