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);
|
||||
String usernameField = userMapping.getNameField ();
|
||||
String usernameProp = null;
|
||||
if (usernameField != null) {
|
||||
Relation namerel= userMapping.columnNameToProperty (usernameField);
|
||||
if (namerel != null)
|
||||
usernameProp = namerel.propname;
|
||||
}
|
||||
if (usernameField != null)
|
||||
usernameProp = userMapping.columnNameToProperty (usernameField);
|
||||
if (usernameProp == null)
|
||||
usernameProp = "name";
|
||||
unode.setName (uname);
|
||||
|
|
Loading…
Add table
Reference in a new issue