[#6838] An internal representation of UserImpl rectified to Name's type

This commit is contained in:
Timur Shaidullin 2017-11-23 17:18:02 +03:00
parent 09df218577
commit cf1dd67eca
3 changed files with 7 additions and 6 deletions

View File

@ -9,5 +9,5 @@ public interface User {
/**
* The name of user
*/
public String getName();
public Name getName();
}

View File

@ -7858,11 +7858,11 @@ public class DSL {
// -------------------------------------------------------------------------
public static User user(String name) {
return new UserImpl(name);
return new UserImpl(name(name));
}
public static User user(Name name) {
return new UserImpl(name.toString());
return new UserImpl(name);
}
// -------------------------------------------------------------------------

View File

@ -1,5 +1,6 @@
package org.jooq.impl;
import org.jooq.Name;
import org.jooq.User;
/**
@ -8,14 +9,14 @@ import org.jooq.User;
* @author Timur Shaidullin
*/
public class UserImpl implements User {
private String name;
private Name name;
public UserImpl(String name) {
public UserImpl(Name name) {
this.name = name;
}
@Override
public String getName() {
public Name getName() {
return name;
}
}