Commit ca73d750 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

added new field for elevator pitch

parent 515afe35
......@@ -13,6 +13,6 @@
##
build.namespace=ANALYSIS
build.number=80
build.date=1521122796310
build.number=82
build.date=1522053776808
build.auto.upgrade=true
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=GB
build.number=101
build.date=1521122800720
build.number=103
build.date=1522053781391
build.auto.upgrade=true
\ No newline at end of file
......@@ -546,6 +546,21 @@ public interface IdeasModel extends BaseModel<Ideas>, GroupedModel, ShardedModel
*/
public void setLayoutRef(long layoutRef);
/**
* Returns the pitch of this ideas.
*
* @return the pitch of this ideas
*/
@AutoEscape
public String getPitch();
/**
* Sets the pitch of this ideas.
*
* @param pitch the pitch of this ideas
*/
public void setPitch(String pitch);
/**
* Returns the status of this ideas.
*
......
......@@ -64,6 +64,7 @@ public class IdeasSoap implements Serializable {
soapModel.setVideoFileRef(model.getVideoFileRef());
soapModel.setPageUrl(model.getPageUrl());
soapModel.setLayoutRef(model.getLayoutRef());
soapModel.setPitch(model.getPitch());
soapModel.setStatus(model.getStatus());
soapModel.setStatusByUserId(model.getStatusByUserId());
soapModel.setStatusByUserName(model.getStatusByUserName());
......@@ -368,6 +369,14 @@ public class IdeasSoap implements Serializable {
_layoutRef = layoutRef;
}
public String getPitch() {
return _pitch;
}
public void setPitch(String pitch) {
_pitch = pitch;
}
public int getStatus() {
return _status;
}
......@@ -430,6 +439,7 @@ public class IdeasSoap implements Serializable {
private long _videoFileRef;
private String _pageUrl;
private long _layoutRef;
private String _pitch;
private int _status;
private long _statusByUserId;
private String _statusByUserName;
......
......@@ -89,6 +89,7 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
attributes.put("videoFileRef", getVideoFileRef());
attributes.put("pageUrl", getPageUrl());
attributes.put("layoutRef", getLayoutRef());
attributes.put("pitch", getPitch());
attributes.put("status", getStatus());
attributes.put("statusByUserId", getStatusByUserId());
attributes.put("statusByUserName", getStatusByUserName());
......@@ -279,6 +280,12 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
setLayoutRef(layoutRef);
}
String pitch = (String)attributes.get("pitch");
if (pitch != null) {
setPitch(pitch);
}
Integer status = (Integer)attributes.get("status");
if (status != null) {
......@@ -549,6 +556,16 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
return _ideas.getPageUrl();
}
/**
* Returns the pitch of this ideas.
*
* @return the pitch of this ideas
*/
@Override
public java.lang.String getPitch() {
return _ideas.getPitch();
}
/**
* Returns the rating of this ideas.
*
......@@ -1010,6 +1027,16 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
_ideas.setPageUrl(pageUrl);
}
/**
* Sets the pitch of this ideas.
*
* @param pitch the pitch of this ideas
*/
@Override
public void setPitch(java.lang.String pitch) {
_ideas.setPitch(pitch);
}
/**
* Sets the primary key of this ideas.
*
......
......@@ -68,6 +68,7 @@
<property name="videoFileRef" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="pageUrl" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="layoutRef" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="pitch" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="status" type="com.liferay.portal.dao.orm.hibernate.IntegerType" />
<property name="statusByUserId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="statusByUserName" type="com.liferay.portal.dao.orm.hibernate.StringType" />
......
......@@ -79,6 +79,9 @@
<hint name="max-length">4000</hint>
</field>
<field name="layoutRef" type="long" />
<field name="pitch" type="String">
<hint name="max-length">4000</hint>
</field>
<field name="status" type="int" />
<field name="statusByUserId" type="long" />
<field name="statusByUserName" type="String" />
......
......@@ -56,6 +56,7 @@ create table IDEA_Ideas (
videoFileRef LONG,
pageUrl STRING null,
layoutRef LONG,
pitch STRING null,
status INTEGER,
statusByUserId LONG,
statusByUserName VARCHAR(75) null,
......
......@@ -33,6 +33,7 @@
<column name="videoFileRef" type="long"></column>
<column name="pageUrl" type="String"></column>
<column name="layoutRef" type="long"></column>
<column name="pitch" type="String"></column>
<!-- Status fields -->
<column name="status" type="int" />
<column name="statusByUserId" type="long" />
......
......@@ -65,7 +65,7 @@ public class IdeasCacheModel implements CacheModel<Ideas>, Externalizable {
@Override
public String toString() {
StringBundler sb = new StringBundler(69);
StringBundler sb = new StringBundler(71);
sb.append("{uuid=");
sb.append(uuid);
......@@ -127,6 +127,8 @@ public class IdeasCacheModel implements CacheModel<Ideas>, Externalizable {
sb.append(pageUrl);
sb.append(", layoutRef=");
sb.append(layoutRef);
sb.append(", pitch=");
sb.append(pitch);
sb.append(", status=");
sb.append(status);
sb.append(", statusByUserId=");
......@@ -281,6 +283,14 @@ public class IdeasCacheModel implements CacheModel<Ideas>, Externalizable {
}
ideasImpl.setLayoutRef(layoutRef);
if (pitch == null) {
ideasImpl.setPitch(StringPool.BLANK);
}
else {
ideasImpl.setPitch(pitch);
}
ideasImpl.setStatus(status);
ideasImpl.setStatusByUserId(statusByUserId);
......@@ -348,6 +358,7 @@ public class IdeasCacheModel implements CacheModel<Ideas>, Externalizable {
pageUrl = objectInput.readUTF();
layoutRef = objectInput.readLong();
pitch = objectInput.readUTF();
status = objectInput.readInt();
......@@ -493,6 +504,13 @@ public class IdeasCacheModel implements CacheModel<Ideas>, Externalizable {
objectOutput.writeLong(layoutRef);
if (pitch == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(pitch);
}
objectOutput.writeInt(status);
objectOutput.writeLong(statusByUserId);
......@@ -537,6 +555,7 @@ public class IdeasCacheModel implements CacheModel<Ideas>, Externalizable {
public long videoFileRef;
public String pageUrl;
public long layoutRef;
public String pitch;
public int status;
public long statusByUserId;
public String statusByUserName;
......
......@@ -103,6 +103,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
{ "videoFileRef", Types.BIGINT },
{ "pageUrl", Types.VARCHAR },
{ "layoutRef", Types.BIGINT },
{ "pitch", Types.VARCHAR },
{ "status", Types.INTEGER },
{ "statusByUserId", Types.BIGINT },
{ "statusByUserName", Types.VARCHAR },
......@@ -141,13 +142,14 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
TABLE_COLUMNS_MAP.put("videoFileRef", Types.BIGINT);
TABLE_COLUMNS_MAP.put("pageUrl", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("layoutRef", Types.BIGINT);
TABLE_COLUMNS_MAP.put("pitch", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("status", Types.INTEGER);
TABLE_COLUMNS_MAP.put("statusByUserId", Types.BIGINT);
TABLE_COLUMNS_MAP.put("statusByUserName", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("statusDate", Types.TIMESTAMP);
}
public static final String TABLE_SQL_CREATE = "create table IDEA_Ideas (uuid_ VARCHAR(75) null,ideasId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,title VARCHAR(75) null,description STRING null,shortdescription VARCHAR(100) null,reviewStatus VARCHAR(75) null,goal STRING null,tags STRING null,importance STRING null,targetAudience STRING null,solution STRING null,category LONG,latitude DOUBLE,longitude DOUBLE,titleImgRef STRING null,videoUrl STRING null,published BOOLEAN,isVisibleOnMap BOOLEAN,rating TEXT null,projectRef LONG,titleFileRef LONG,videoFileRef LONG,pageUrl STRING null,layoutRef LONG,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
public static final String TABLE_SQL_CREATE = "create table IDEA_Ideas (uuid_ VARCHAR(75) null,ideasId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,title VARCHAR(75) null,description STRING null,shortdescription VARCHAR(100) null,reviewStatus VARCHAR(75) null,goal STRING null,tags STRING null,importance STRING null,targetAudience STRING null,solution STRING null,category LONG,latitude DOUBLE,longitude DOUBLE,titleImgRef STRING null,videoUrl STRING null,published BOOLEAN,isVisibleOnMap BOOLEAN,rating TEXT null,projectRef LONG,titleFileRef LONG,videoFileRef LONG,pageUrl STRING null,layoutRef LONG,pitch STRING null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
public static final String TABLE_SQL_DROP = "drop table IDEA_Ideas";
public static final String ORDER_BY_JPQL = " ORDER BY ideas.ideasId ASC";
public static final String ORDER_BY_SQL = " ORDER BY IDEA_Ideas.ideasId ASC";
......@@ -213,6 +215,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
model.setVideoFileRef(soapModel.getVideoFileRef());
model.setPageUrl(soapModel.getPageUrl());
model.setLayoutRef(soapModel.getLayoutRef());
model.setPitch(soapModel.getPitch());
model.setStatus(soapModel.getStatus());
model.setStatusByUserId(soapModel.getStatusByUserId());
model.setStatusByUserName(soapModel.getStatusByUserName());
......@@ -311,6 +314,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
attributes.put("videoFileRef", getVideoFileRef());
attributes.put("pageUrl", getPageUrl());
attributes.put("layoutRef", getLayoutRef());
attributes.put("pitch", getPitch());
attributes.put("status", getStatus());
attributes.put("statusByUserId", getStatusByUserId());
attributes.put("statusByUserName", getStatusByUserName());
......@@ -504,6 +508,12 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
setLayoutRef(layoutRef);
}
String pitch = (String)attributes.get("pitch");
if (pitch != null) {
setPitch(pitch);
}
Integer status = (Integer)attributes.get("status");
if (status != null) {
......@@ -1012,6 +1022,22 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
return _originalLayoutRef;
}
@JSON
@Override
public String getPitch() {
if (_pitch == null) {
return StringPool.BLANK;
}
else {
return _pitch;
}
}
@Override
public void setPitch(String pitch) {
_pitch = pitch;
}
@JSON
@Override
public int getStatus() {
......@@ -1236,6 +1262,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
ideasImpl.setVideoFileRef(getVideoFileRef());
ideasImpl.setPageUrl(getPageUrl());
ideasImpl.setLayoutRef(getLayoutRef());
ideasImpl.setPitch(getPitch());
ideasImpl.setStatus(getStatus());
ideasImpl.setStatusByUserId(getStatusByUserId());
ideasImpl.setStatusByUserName(getStatusByUserName());
......@@ -1493,6 +1520,14 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
ideasCacheModel.layoutRef = getLayoutRef();
ideasCacheModel.pitch = getPitch();
String pitch = ideasCacheModel.pitch;
if ((pitch != null) && (pitch.length() == 0)) {
ideasCacheModel.pitch = null;
}
ideasCacheModel.status = getStatus();
ideasCacheModel.statusByUserId = getStatusByUserId();
......@@ -1519,7 +1554,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
@Override
public String toString() {
StringBundler sb = new StringBundler(69);
StringBundler sb = new StringBundler(71);
sb.append("{uuid=");
sb.append(getUuid());
......@@ -1581,6 +1616,8 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
sb.append(getPageUrl());
sb.append(", layoutRef=");
sb.append(getLayoutRef());
sb.append(", pitch=");
sb.append(getPitch());
sb.append(", status=");
sb.append(getStatus());
sb.append(", statusByUserId=");
......@@ -1596,7 +1633,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(106);
StringBundler sb = new StringBundler(109);
sb.append("<model><model-name>");
sb.append("ideaService.model.Ideas");
......@@ -1722,6 +1759,10 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
"<column><column-name>layoutRef</column-name><column-value><![CDATA[");
sb.append(getLayoutRef());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>pitch</column-name><column-value><![CDATA[");
sb.append(getPitch());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>status</column-name><column-value><![CDATA[");
sb.append(getStatus());
......@@ -1786,6 +1827,7 @@ public class IdeasModelImpl extends BaseModelImpl<Ideas> implements IdeasModel {
private long _layoutRef;
private long _originalLayoutRef;
private boolean _setOriginalLayoutRef;
private String _pitch;
private int _status;
private int _originalStatus;
private boolean _setOriginalStatus;
......
......@@ -3194,6 +3194,7 @@ public class IdeasPersistenceImpl extends BasePersistenceImpl<Ideas>
ideasImpl.setVideoFileRef(ideas.getVideoFileRef());
ideasImpl.setPageUrl(ideas.getPageUrl());
ideasImpl.setLayoutRef(ideas.getLayoutRef());
ideasImpl.setPitch(ideas.getPitch());
ideasImpl.setStatus(ideas.getStatus());
ideasImpl.setStatusByUserId(ideas.getStatusByUserId());
ideasImpl.setStatusByUserName(ideas.getStatusByUserName());
......
......@@ -68,6 +68,7 @@
<property name="videoFileRef" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="pageUrl" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="layoutRef" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="pitch" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="status" type="com.liferay.portal.dao.orm.hibernate.IntegerType" />
<property name="statusByUserId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="statusByUserName" type="com.liferay.portal.dao.orm.hibernate.StringType" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment