|
|
|
@ -69,16 +69,22 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
{ "sportelloId", Types.BIGINT }, |
|
|
|
|
{ "groupId", Types.BIGINT }, |
|
|
|
|
{ "companyId", Types.BIGINT }, |
|
|
|
|
{ "userId", Types.BIGINT }, |
|
|
|
|
{ "userName", Types.VARCHAR }, |
|
|
|
|
{ "createDate", Types.TIMESTAMP }, |
|
|
|
|
{ "createUserId", Types.BIGINT }, |
|
|
|
|
{ "createUserName", Types.VARCHAR }, |
|
|
|
|
{ "modifiedDate", Types.TIMESTAMP }, |
|
|
|
|
{ "modifiedUserId", Types.BIGINT }, |
|
|
|
|
{ "modifiedUserName", Types.VARCHAR }, |
|
|
|
|
{ "userName", Types.VARCHAR }, |
|
|
|
|
{ "email", Types.VARCHAR }, |
|
|
|
|
{ "comuneId", Types.BIGINT }, |
|
|
|
|
{ "apiKey", Types.VARCHAR }, |
|
|
|
|
{ "attivo", Types.BOOLEAN } |
|
|
|
|
{ "attivo", Types.BOOLEAN }, |
|
|
|
|
{ "password_", Types.VARCHAR }, |
|
|
|
|
{ "passwordModifiedDate", Types.TIMESTAMP }, |
|
|
|
|
{ "passwordModifiedUserId", Types.BIGINT }, |
|
|
|
|
{ "passwordModifiedUserName", Types.VARCHAR } |
|
|
|
|
}; |
|
|
|
|
public static final String TABLE_SQL_CREATE = "create table sicilia_sue_Sportello (sportelloId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(240) null,createDate DATE null,modifiedDate DATE null,email VARCHAR(240) null,comuneId LONG,apiKey VARCHAR(240) null,attivo BOOLEAN)"; |
|
|
|
|
public static final String TABLE_SQL_CREATE = "create table sicilia_sue_Sportello (sportelloId LONG not null primary key,groupId LONG,companyId LONG,createDate DATE null,createUserId LONG,createUserName VARCHAR(75) null,modifiedDate DATE null,modifiedUserId LONG,modifiedUserName VARCHAR(75) null,userName VARCHAR(75) null,email VARCHAR(240) null,comuneId LONG,attivo BOOLEAN,password_ VARCHAR(75) null,passwordModifiedDate DATE null,passwordModifiedUserId LONG,passwordModifiedUserName VARCHAR(240) null)"; |
|
|
|
|
public static final String TABLE_SQL_DROP = "drop table sicilia_sue_Sportello"; |
|
|
|
|
public static final String ORDER_BY_JPQL = " ORDER BY sportello.sportelloId ASC"; |
|
|
|
|
public static final String ORDER_BY_SQL = " ORDER BY sicilia_sue_Sportello.sportelloId ASC"; |
|
|
|
@ -95,7 +101,8 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
"value.object.column.bitmask.enabled.it.mwg.sicilia.sue.model.Sportello"), |
|
|
|
|
true); |
|
|
|
|
public static long COMUNEID_COLUMN_BITMASK = 1L; |
|
|
|
|
public static long SPORTELLOID_COLUMN_BITMASK = 2L; |
|
|
|
|
public static long USERNAME_COLUMN_BITMASK = 2L; |
|
|
|
|
public static long SPORTELLOID_COLUMN_BITMASK = 4L; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Converts the soap model instance into a normal model instance. |
|
|
|
@ -113,14 +120,20 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
model.setSportelloId(soapModel.getSportelloId()); |
|
|
|
|
model.setGroupId(soapModel.getGroupId()); |
|
|
|
|
model.setCompanyId(soapModel.getCompanyId()); |
|
|
|
|
model.setUserId(soapModel.getUserId()); |
|
|
|
|
model.setUserName(soapModel.getUserName()); |
|
|
|
|
model.setCreateDate(soapModel.getCreateDate()); |
|
|
|
|
model.setCreateUserId(soapModel.getCreateUserId()); |
|
|
|
|
model.setCreateUserName(soapModel.getCreateUserName()); |
|
|
|
|
model.setModifiedDate(soapModel.getModifiedDate()); |
|
|
|
|
model.setModifiedUserId(soapModel.getModifiedUserId()); |
|
|
|
|
model.setModifiedUserName(soapModel.getModifiedUserName()); |
|
|
|
|
model.setUserName(soapModel.getUserName()); |
|
|
|
|
model.setEmail(soapModel.getEmail()); |
|
|
|
|
model.setComuneId(soapModel.getComuneId()); |
|
|
|
|
model.setApiKey(soapModel.getApiKey()); |
|
|
|
|
model.setAttivo(soapModel.getAttivo()); |
|
|
|
|
model.setPassword(soapModel.getPassword()); |
|
|
|
|
model.setPasswordModifiedDate(soapModel.getPasswordModifiedDate()); |
|
|
|
|
model.setPasswordModifiedUserId(soapModel.getPasswordModifiedUserId()); |
|
|
|
|
model.setPasswordModifiedUserName(soapModel.getPasswordModifiedUserName()); |
|
|
|
|
|
|
|
|
|
return model; |
|
|
|
|
} |
|
|
|
@ -188,14 +201,20 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
attributes.put("sportelloId", getSportelloId()); |
|
|
|
|
attributes.put("groupId", getGroupId()); |
|
|
|
|
attributes.put("companyId", getCompanyId()); |
|
|
|
|
attributes.put("userId", getUserId()); |
|
|
|
|
attributes.put("userName", getUserName()); |
|
|
|
|
attributes.put("createDate", getCreateDate()); |
|
|
|
|
attributes.put("createUserId", getCreateUserId()); |
|
|
|
|
attributes.put("createUserName", getCreateUserName()); |
|
|
|
|
attributes.put("modifiedDate", getModifiedDate()); |
|
|
|
|
attributes.put("modifiedUserId", getModifiedUserId()); |
|
|
|
|
attributes.put("modifiedUserName", getModifiedUserName()); |
|
|
|
|
attributes.put("userName", getUserName()); |
|
|
|
|
attributes.put("email", getEmail()); |
|
|
|
|
attributes.put("comuneId", getComuneId()); |
|
|
|
|
attributes.put("apiKey", getApiKey()); |
|
|
|
|
attributes.put("attivo", getAttivo()); |
|
|
|
|
attributes.put("password", getPassword()); |
|
|
|
|
attributes.put("passwordModifiedDate", getPasswordModifiedDate()); |
|
|
|
|
attributes.put("passwordModifiedUserId", getPasswordModifiedUserId()); |
|
|
|
|
attributes.put("passwordModifiedUserName", getPasswordModifiedUserName()); |
|
|
|
|
|
|
|
|
|
return attributes; |
|
|
|
|
} |
|
|
|
@ -220,22 +239,22 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
setCompanyId(companyId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Long userId = (Long)attributes.get("userId"); |
|
|
|
|
Date createDate = (Date)attributes.get("createDate"); |
|
|
|
|
|
|
|
|
|
if (userId != null) { |
|
|
|
|
setUserId(userId); |
|
|
|
|
if (createDate != null) { |
|
|
|
|
setCreateDate(createDate); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String userName = (String)attributes.get("userName"); |
|
|
|
|
Long createUserId = (Long)attributes.get("createUserId"); |
|
|
|
|
|
|
|
|
|
if (userName != null) { |
|
|
|
|
setUserName(userName); |
|
|
|
|
if (createUserId != null) { |
|
|
|
|
setCreateUserId(createUserId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Date createDate = (Date)attributes.get("createDate"); |
|
|
|
|
String createUserName = (String)attributes.get("createUserName"); |
|
|
|
|
|
|
|
|
|
if (createDate != null) { |
|
|
|
|
setCreateDate(createDate); |
|
|
|
|
if (createUserName != null) { |
|
|
|
|
setCreateUserName(createUserName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Date modifiedDate = (Date)attributes.get("modifiedDate"); |
|
|
|
@ -244,6 +263,24 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
setModifiedDate(modifiedDate); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Long modifiedUserId = (Long)attributes.get("modifiedUserId"); |
|
|
|
|
|
|
|
|
|
if (modifiedUserId != null) { |
|
|
|
|
setModifiedUserId(modifiedUserId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String modifiedUserName = (String)attributes.get("modifiedUserName"); |
|
|
|
|
|
|
|
|
|
if (modifiedUserName != null) { |
|
|
|
|
setModifiedUserName(modifiedUserName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String userName = (String)attributes.get("userName"); |
|
|
|
|
|
|
|
|
|
if (userName != null) { |
|
|
|
|
setUserName(userName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String email = (String)attributes.get("email"); |
|
|
|
|
|
|
|
|
|
if (email != null) { |
|
|
|
@ -256,17 +293,37 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
setComuneId(comuneId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String apiKey = (String)attributes.get("apiKey"); |
|
|
|
|
|
|
|
|
|
if (apiKey != null) { |
|
|
|
|
setApiKey(apiKey); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Boolean attivo = (Boolean)attributes.get("attivo"); |
|
|
|
|
|
|
|
|
|
if (attivo != null) { |
|
|
|
|
setAttivo(attivo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String password = (String)attributes.get("password"); |
|
|
|
|
|
|
|
|
|
if (password != null) { |
|
|
|
|
setPassword(password); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Date passwordModifiedDate = (Date)attributes.get("passwordModifiedDate"); |
|
|
|
|
|
|
|
|
|
if (passwordModifiedDate != null) { |
|
|
|
|
setPasswordModifiedDate(passwordModifiedDate); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Long passwordModifiedUserId = (Long)attributes.get( |
|
|
|
|
"passwordModifiedUserId"); |
|
|
|
|
|
|
|
|
|
if (passwordModifiedUserId != null) { |
|
|
|
|
setPasswordModifiedUserId(passwordModifiedUserId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String passwordModifiedUserName = (String)attributes.get( |
|
|
|
|
"passwordModifiedUserName"); |
|
|
|
|
|
|
|
|
|
if (passwordModifiedUserName != null) { |
|
|
|
|
setPasswordModifiedUserName(passwordModifiedUserName); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
@ -304,61 +361,126 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public long getUserId() { |
|
|
|
|
return _userId; |
|
|
|
|
public Date getCreateDate() { |
|
|
|
|
return _createDate; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setCreateDate(Date createDate) { |
|
|
|
|
_createDate = createDate; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public long getCreateUserId() { |
|
|
|
|
return _createUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setUserId(long userId) { |
|
|
|
|
_userId = userId; |
|
|
|
|
public void setCreateUserId(long createUserId) { |
|
|
|
|
_createUserId = createUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getUserUuid() throws SystemException { |
|
|
|
|
return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); |
|
|
|
|
public String getCreateUserUuid() throws SystemException { |
|
|
|
|
return PortalUtil.getUserValue(getCreateUserId(), "uuid", |
|
|
|
|
_createUserUuid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setUserUuid(String userUuid) { |
|
|
|
|
_userUuid = userUuid; |
|
|
|
|
public void setCreateUserUuid(String createUserUuid) { |
|
|
|
|
_createUserUuid = createUserUuid; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public String getUserName() { |
|
|
|
|
if (_userName == null) { |
|
|
|
|
public String getCreateUserName() { |
|
|
|
|
if (_createUserName == null) { |
|
|
|
|
return StringPool.BLANK; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
return _userName; |
|
|
|
|
return _createUserName; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setUserName(String userName) { |
|
|
|
|
_userName = userName; |
|
|
|
|
public void setCreateUserName(String createUserName) { |
|
|
|
|
_createUserName = createUserName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public Date getCreateDate() { |
|
|
|
|
return _createDate; |
|
|
|
|
public Date getModifiedDate() { |
|
|
|
|
return _modifiedDate; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setCreateDate(Date createDate) { |
|
|
|
|
_createDate = createDate; |
|
|
|
|
public void setModifiedDate(Date modifiedDate) { |
|
|
|
|
_modifiedDate = modifiedDate; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public Date getModifiedDate() { |
|
|
|
|
return _modifiedDate; |
|
|
|
|
public long getModifiedUserId() { |
|
|
|
|
return _modifiedUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setModifiedDate(Date modifiedDate) { |
|
|
|
|
_modifiedDate = modifiedDate; |
|
|
|
|
public void setModifiedUserId(long modifiedUserId) { |
|
|
|
|
_modifiedUserId = modifiedUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getModifiedUserUuid() throws SystemException { |
|
|
|
|
return PortalUtil.getUserValue(getModifiedUserId(), "uuid", |
|
|
|
|
_modifiedUserUuid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setModifiedUserUuid(String modifiedUserUuid) { |
|
|
|
|
_modifiedUserUuid = modifiedUserUuid; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public String getModifiedUserName() { |
|
|
|
|
if (_modifiedUserName == null) { |
|
|
|
|
return StringPool.BLANK; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
return _modifiedUserName; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setModifiedUserName(String modifiedUserName) { |
|
|
|
|
_modifiedUserName = modifiedUserName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public String getUserName() { |
|
|
|
|
if (_userName == null) { |
|
|
|
|
return StringPool.BLANK; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
return _userName; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setUserName(String userName) { |
|
|
|
|
_columnBitmask |= USERNAME_COLUMN_BITMASK; |
|
|
|
|
|
|
|
|
|
if (_originalUserName == null) { |
|
|
|
|
_originalUserName = _userName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_userName = userName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getOriginalUserName() { |
|
|
|
|
return GetterUtil.getString(_originalUserName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
@ -402,34 +524,83 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public String getApiKey() { |
|
|
|
|
if (_apiKey == null) { |
|
|
|
|
public boolean getAttivo() { |
|
|
|
|
return _attivo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isAttivo() { |
|
|
|
|
return _attivo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setAttivo(boolean attivo) { |
|
|
|
|
_attivo = attivo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public String getPassword() { |
|
|
|
|
if (_password == null) { |
|
|
|
|
return StringPool.BLANK; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
return _apiKey; |
|
|
|
|
return _password; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setApiKey(String apiKey) { |
|
|
|
|
_apiKey = apiKey; |
|
|
|
|
public void setPassword(String password) { |
|
|
|
|
_password = password; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public boolean getAttivo() { |
|
|
|
|
return _attivo; |
|
|
|
|
public Date getPasswordModifiedDate() { |
|
|
|
|
return _passwordModifiedDate; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isAttivo() { |
|
|
|
|
return _attivo; |
|
|
|
|
public void setPasswordModifiedDate(Date passwordModifiedDate) { |
|
|
|
|
_passwordModifiedDate = passwordModifiedDate; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public void setAttivo(boolean attivo) { |
|
|
|
|
_attivo = attivo; |
|
|
|
|
public long getPasswordModifiedUserId() { |
|
|
|
|
return _passwordModifiedUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setPasswordModifiedUserId(long passwordModifiedUserId) { |
|
|
|
|
_passwordModifiedUserId = passwordModifiedUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getPasswordModifiedUserUuid() throws SystemException { |
|
|
|
|
return PortalUtil.getUserValue(getPasswordModifiedUserId(), "uuid", |
|
|
|
|
_passwordModifiedUserUuid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setPasswordModifiedUserUuid(String passwordModifiedUserUuid) { |
|
|
|
|
_passwordModifiedUserUuid = passwordModifiedUserUuid; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSON |
|
|
|
|
@Override |
|
|
|
|
public String getPasswordModifiedUserName() { |
|
|
|
|
if (_passwordModifiedUserName == null) { |
|
|
|
|
return StringPool.BLANK; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
return _passwordModifiedUserName; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setPasswordModifiedUserName(String passwordModifiedUserName) { |
|
|
|
|
_passwordModifiedUserName = passwordModifiedUserName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public long getColumnBitmask() { |
|
|
|
@ -466,14 +637,20 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
sportelloImpl.setSportelloId(getSportelloId()); |
|
|
|
|
sportelloImpl.setGroupId(getGroupId()); |
|
|
|
|
sportelloImpl.setCompanyId(getCompanyId()); |
|
|
|
|
sportelloImpl.setUserId(getUserId()); |
|
|
|
|
sportelloImpl.setUserName(getUserName()); |
|
|
|
|
sportelloImpl.setCreateDate(getCreateDate()); |
|
|
|
|
sportelloImpl.setCreateUserId(getCreateUserId()); |
|
|
|
|
sportelloImpl.setCreateUserName(getCreateUserName()); |
|
|
|
|
sportelloImpl.setModifiedDate(getModifiedDate()); |
|
|
|
|
sportelloImpl.setModifiedUserId(getModifiedUserId()); |
|
|
|
|
sportelloImpl.setModifiedUserName(getModifiedUserName()); |
|
|
|
|
sportelloImpl.setUserName(getUserName()); |
|
|
|
|
sportelloImpl.setEmail(getEmail()); |
|
|
|
|
sportelloImpl.setComuneId(getComuneId()); |
|
|
|
|
sportelloImpl.setApiKey(getApiKey()); |
|
|
|
|
sportelloImpl.setAttivo(getAttivo()); |
|
|
|
|
sportelloImpl.setPassword(getPassword()); |
|
|
|
|
sportelloImpl.setPasswordModifiedDate(getPasswordModifiedDate()); |
|
|
|
|
sportelloImpl.setPasswordModifiedUserId(getPasswordModifiedUserId()); |
|
|
|
|
sportelloImpl.setPasswordModifiedUserName(getPasswordModifiedUserName()); |
|
|
|
|
|
|
|
|
|
sportelloImpl.resetOriginalValues(); |
|
|
|
|
|
|
|
|
@ -526,6 +703,8 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
public void resetOriginalValues() { |
|
|
|
|
SportelloModelImpl sportelloModelImpl = this; |
|
|
|
|
|
|
|
|
|
sportelloModelImpl._originalUserName = sportelloModelImpl._userName; |
|
|
|
|
|
|
|
|
|
sportelloModelImpl._originalComuneId = sportelloModelImpl._comuneId; |
|
|
|
|
|
|
|
|
|
sportelloModelImpl._setOriginalComuneId = false; |
|
|
|
@ -543,16 +722,6 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
|
|
|
|
|
sportelloCacheModel.companyId = getCompanyId(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.userId = getUserId(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.userName = getUserName(); |
|
|
|
|
|
|
|
|
|
String userName = sportelloCacheModel.userName; |
|
|
|
|
|
|
|
|
|
if ((userName != null) && (userName.length() == 0)) { |
|
|
|
|
sportelloCacheModel.userName = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Date createDate = getCreateDate(); |
|
|
|
|
|
|
|
|
|
if (createDate != null) { |
|
|
|
@ -562,6 +731,16 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
sportelloCacheModel.createDate = Long.MIN_VALUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.createUserId = getCreateUserId(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.createUserName = getCreateUserName(); |
|
|
|
|
|
|
|
|
|
String createUserName = sportelloCacheModel.createUserName; |
|
|
|
|
|
|
|
|
|
if ((createUserName != null) && (createUserName.length() == 0)) { |
|
|
|
|
sportelloCacheModel.createUserName = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Date modifiedDate = getModifiedDate(); |
|
|
|
|
|
|
|
|
|
if (modifiedDate != null) { |
|
|
|
@ -571,6 +750,24 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
sportelloCacheModel.modifiedDate = Long.MIN_VALUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.modifiedUserId = getModifiedUserId(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.modifiedUserName = getModifiedUserName(); |
|
|
|
|
|
|
|
|
|
String modifiedUserName = sportelloCacheModel.modifiedUserName; |
|
|
|
|
|
|
|
|
|
if ((modifiedUserName != null) && (modifiedUserName.length() == 0)) { |
|
|
|
|
sportelloCacheModel.modifiedUserName = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.userName = getUserName(); |
|
|
|
|
|
|
|
|
|
String userName = sportelloCacheModel.userName; |
|
|
|
|
|
|
|
|
|
if ((userName != null) && (userName.length() == 0)) { |
|
|
|
|
sportelloCacheModel.userName = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.email = getEmail(); |
|
|
|
|
|
|
|
|
|
String email = sportelloCacheModel.email; |
|
|
|
@ -581,22 +778,42 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
|
|
|
|
|
sportelloCacheModel.comuneId = getComuneId(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.apiKey = getApiKey(); |
|
|
|
|
sportelloCacheModel.attivo = getAttivo(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.password = getPassword(); |
|
|
|
|
|
|
|
|
|
String apiKey = sportelloCacheModel.apiKey; |
|
|
|
|
String password = sportelloCacheModel.password; |
|
|
|
|
|
|
|
|
|
if ((apiKey != null) && (apiKey.length() == 0)) { |
|
|
|
|
sportelloCacheModel.apiKey = null; |
|
|
|
|
if ((password != null) && (password.length() == 0)) { |
|
|
|
|
sportelloCacheModel.password = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.attivo = getAttivo(); |
|
|
|
|
Date passwordModifiedDate = getPasswordModifiedDate(); |
|
|
|
|
|
|
|
|
|
if (passwordModifiedDate != null) { |
|
|
|
|
sportelloCacheModel.passwordModifiedDate = passwordModifiedDate.getTime(); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
sportelloCacheModel.passwordModifiedDate = Long.MIN_VALUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.passwordModifiedUserId = getPasswordModifiedUserId(); |
|
|
|
|
|
|
|
|
|
sportelloCacheModel.passwordModifiedUserName = getPasswordModifiedUserName(); |
|
|
|
|
|
|
|
|
|
String passwordModifiedUserName = sportelloCacheModel.passwordModifiedUserName; |
|
|
|
|
|
|
|
|
|
if ((passwordModifiedUserName != null) && |
|
|
|
|
(passwordModifiedUserName.length() == 0)) { |
|
|
|
|
sportelloCacheModel.passwordModifiedUserName = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return sportelloCacheModel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String toString() { |
|
|
|
|
StringBundler sb = new StringBundler(23); |
|
|
|
|
StringBundler sb = new StringBundler(35); |
|
|
|
|
|
|
|
|
|
sb.append("{sportelloId="); |
|
|
|
|
sb.append(getSportelloId()); |
|
|
|
@ -604,22 +821,34 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
sb.append(getGroupId()); |
|
|
|
|
sb.append(", companyId="); |
|
|
|
|
sb.append(getCompanyId()); |
|
|
|
|
sb.append(", userId="); |
|
|
|
|
sb.append(getUserId()); |
|
|
|
|
sb.append(", userName="); |
|
|
|
|
sb.append(getUserName()); |
|
|
|
|
sb.append(", createDate="); |
|
|
|
|
sb.append(getCreateDate()); |
|
|
|
|
sb.append(", createUserId="); |
|
|
|
|
sb.append(getCreateUserId()); |
|
|
|
|
sb.append(", createUserName="); |
|
|
|
|
sb.append(getCreateUserName()); |
|
|
|
|
sb.append(", modifiedDate="); |
|
|
|
|
sb.append(getModifiedDate()); |
|
|
|
|
sb.append(", modifiedUserId="); |
|
|
|
|
sb.append(getModifiedUserId()); |
|
|
|
|
sb.append(", modifiedUserName="); |
|
|
|
|
sb.append(getModifiedUserName()); |
|
|
|
|
sb.append(", userName="); |
|
|
|
|
sb.append(getUserName()); |
|
|
|
|
sb.append(", email="); |
|
|
|
|
sb.append(getEmail()); |
|
|
|
|
sb.append(", comuneId="); |
|
|
|
|
sb.append(getComuneId()); |
|
|
|
|
sb.append(", apiKey="); |
|
|
|
|
sb.append(getApiKey()); |
|
|
|
|
sb.append(", attivo="); |
|
|
|
|
sb.append(getAttivo()); |
|
|
|
|
sb.append(", password="); |
|
|
|
|
sb.append(getPassword()); |
|
|
|
|
sb.append(", passwordModifiedDate="); |
|
|
|
|
sb.append(getPasswordModifiedDate()); |
|
|
|
|
sb.append(", passwordModifiedUserId="); |
|
|
|
|
sb.append(getPasswordModifiedUserId()); |
|
|
|
|
sb.append(", passwordModifiedUserName="); |
|
|
|
|
sb.append(getPasswordModifiedUserName()); |
|
|
|
|
sb.append("}"); |
|
|
|
|
|
|
|
|
|
return sb.toString(); |
|
|
|
@ -627,7 +856,7 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String toXmlString() { |
|
|
|
|
StringBundler sb = new StringBundler(37); |
|
|
|
|
StringBundler sb = new StringBundler(55); |
|
|
|
|
|
|
|
|
|
sb.append("<model><model-name>"); |
|
|
|
|
sb.append("it.mwg.sicilia.sue.model.Sportello"); |
|
|
|
@ -646,21 +875,33 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
sb.append(getCompanyId()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>userId</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getUserId()); |
|
|
|
|
"<column><column-name>createDate</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getCreateDate()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>userName</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getUserName()); |
|
|
|
|
"<column><column-name>createUserId</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getCreateUserId()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>createDate</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getCreateDate()); |
|
|
|
|
"<column><column-name>createUserName</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getCreateUserName()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>modifiedDate</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getModifiedDate()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>modifiedUserId</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getModifiedUserId()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>modifiedUserName</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getModifiedUserName()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>userName</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getUserName()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>email</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getEmail()); |
|
|
|
@ -669,14 +910,26 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
"<column><column-name>comuneId</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getComuneId()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>apiKey</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getApiKey()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>attivo</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getAttivo()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>password</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getPassword()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>passwordModifiedDate</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getPasswordModifiedDate()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>passwordModifiedUserId</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getPasswordModifiedUserId()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
sb.append( |
|
|
|
|
"<column><column-name>passwordModifiedUserName</column-name><column-value><![CDATA["); |
|
|
|
|
sb.append(getPasswordModifiedUserName()); |
|
|
|
|
sb.append("]]></column-value></column>"); |
|
|
|
|
|
|
|
|
|
sb.append("</model>"); |
|
|
|
|
|
|
|
|
@ -690,17 +943,26 @@ public class SportelloModelImpl extends BaseModelImpl<Sportello>
|
|
|
|
|
private long _sportelloId; |
|
|
|
|
private long _groupId; |
|
|
|
|
private long _companyId; |
|
|
|
|
private long _userId; |
|
|
|
|
private String _userUuid; |
|
|
|
|
private String _userName; |
|
|
|
|
private Date _createDate; |
|
|
|
|
private long _createUserId; |
|
|
|
|
private String _createUserUuid; |
|
|
|
|
private String _createUserName; |
|
|
|
|
private Date _modifiedDate; |
|
|
|
|
private long _modifiedUserId; |
|
|
|
|
private String _modifiedUserUuid; |
|
|
|
|
private String _modifiedUserName; |
|
|
|
|
private String _userName; |
|
|
|
|
private String _originalUserName; |
|
|
|
|
private String _email; |
|
|
|
|
private long _comuneId; |
|
|
|
|
private long _originalComuneId; |
|
|
|
|
private boolean _setOriginalComuneId; |
|
|
|
|
private String _apiKey; |
|
|
|
|
private boolean _attivo; |
|
|
|
|
private String _password; |
|
|
|
|
private Date _passwordModifiedDate; |
|
|
|
|
private long _passwordModifiedUserId; |
|
|
|
|
private String _passwordModifiedUserUuid; |
|
|
|
|
private String _passwordModifiedUserName; |
|
|
|
|
private long _columnBitmask; |
|
|
|
|
private Sportello _escapedModel; |
|
|
|
|
} |