
|
If you were logged in you would be able to see more operations.
|
|
|
|
If my java bean has uid defined like:
[Code]
public class MyEntity
{
@ExternalizedProperty
public String getUid()
{
...
}
}
[/Code]
Granite-generator must recognized getUID property as uid for MyEntity class.
|
|
Description
|
If my java bean has uid defined like:
[Code]
public class MyEntity
{
@ExternalizedProperty
public String getUid()
{
...
}
}
[/Code]
Granite-generator must recognized getUID property as uid for MyEntity class. |
Show » |
Sort Order:
|
JavaBean.java
Line 57:
protected final JavaProperty uid;
Line 88:
// Find uid (if any).
JavaProperty tmpUid = null;
for (JavaProperty property : properties.values()) {
if (tmpUid == null && provider.isUid(property))
tmpUid = property;
}
}
this.uid = tmpUid;
JavaTypeProperty.java
Line 41:
public boolean isUid(JavaProperty fieldProperty);
JavaAs3GroovyTransformer.java
Line 316:
public boolean isUid(JavaProperty fieldProperty) {
return getConfig().getUid() == null
? "uid".equals(fieldProperty.getName())
: getConfig().getUid().equals(fieldProperty.getName());
}