Solve issue that caused Asset id's being saved localized into the database. It should always be saved in plain english.
This commit is contained in:
parent
2618a6a3a0
commit
8bbf68ce6d
1 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,8 @@ package cy.agorise.graphenej;
|
||||||
|
|
||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Generic class used to represent a graphene object as defined in
|
* Generic class used to represent a graphene object as defined in
|
||||||
|
@ -34,15 +36,15 @@ public class GrapheneObject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return: A String containing the full object apiId in the form {space}.{type}.{instance}
|
* @return A String containing the full object apiId in the form {space}.{type}.{instance}
|
||||||
*/
|
*/
|
||||||
public String getObjectId(){
|
public String getObjectId(){
|
||||||
return String.format("%d.%d.%d", space, type, instance);
|
return String.format(Locale.US, "%d.%d.%d", space, type, instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the type of this object.
|
* Returns the type of this object.
|
||||||
* @return: Instance of the ObjectType enum.
|
* @return Instance of the ObjectType enum.
|
||||||
*/
|
*/
|
||||||
public ObjectType getObjectType(){
|
public ObjectType getObjectType(){
|
||||||
switch(space){
|
switch(space){
|
||||||
|
|
Loading…
Reference in a new issue