adopted to new DbMapping.columnNameToProperty()
This commit is contained in:
parent
4a83d1390a
commit
4f66882627
1 changed files with 2 additions and 5 deletions
|
@ -412,11 +412,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IRep
|
||||||
unode.setDbMapping (userMapping);
|
unode.setDbMapping (userMapping);
|
||||||
String usernameField = userMapping.getNameField ();
|
String usernameField = userMapping.getNameField ();
|
||||||
String usernameProp = null;
|
String usernameProp = null;
|
||||||
if (usernameField != null) {
|
if (usernameField != null)
|
||||||
Relation namerel= userMapping.columnNameToProperty (usernameField);
|
usernameProp = userMapping.columnNameToProperty (usernameField);
|
||||||
if (namerel != null)
|
|
||||||
usernameProp = namerel.propname;
|
|
||||||
}
|
|
||||||
if (usernameProp == null)
|
if (usernameProp == null)
|
||||||
usernameProp = "name";
|
usernameProp = "name";
|
||||||
unode.setName (uname);
|
unode.setName (uname);
|
||||||
|
|
Loading…
Add table
Reference in a new issue