adopted to new DbMapping.columnNameToProperty()

This commit is contained in:
hns 2001-08-08 10:26:27 +00:00
parent 4a83d1390a
commit 4f66882627

View file

@ -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);