Commit e36a3ac4 by Nilu

S32486373 # Client - Incoming Issues (raised by Client) #Industry should be mandatory

S32486540 # Client - Incoming Issues (raised by Client) #Location should be mandatory
parent adc79979
......@@ -29,10 +29,10 @@
<column name="manually_closed" type="Boolean" nullable="true"/>
<column name="last_edited" type="Date" nullable="true"/>
<column name="is_ppj" type="Boolean" nullable="true"/>
<column name="industry" type="String" nullable="true" length="200"/>
<column name="industry" type="String" nullable="false" length="200"/>
<column name="culture_statement" type="String" nullable="true" length="2000"/>
<column name="draft_location" type="String" nullable="true" length="200"/>
<column name="google_address_text" type="String" nullable="true" length="300"/>
<column name="google_address_text" type="String" nullable="false" length="300"/>
<column name="level_id" type="Long" length="11" nullable="true"/>
<column name="client_id" type="Long" length="11" nullable="true"/>
<column name="job_owner_id" type="Long" length="11" nullable="true"/>
......
......@@ -29,10 +29,10 @@ CREATE TABLE tl_job (
manually_closed char(1) NULL,
last_edited datetime NULL,
is_ppj char(1) NULL,
industry varchar(200) NULL,
industry varchar(200) NOT NULL,
culture_statement varchar(2000) NULL,
draft_location varchar(200) NULL,
google_address_text varchar(300) NULL,
google_address_text varchar(300) NOT NULL,
level_id numeric(12) NULL,
client_id numeric(12) NULL,
job_owner_id numeric(12) NULL,
......
......@@ -30,10 +30,10 @@ CREATE TABLE tl_job (
manually_closed char(1) NULL,
last_edited date NULL,
is_ppj char(1) NULL,
industry varchar2(200) NULL,
industry varchar2(200) NOT NULL,
culture_statement varchar2(2000) NULL,
draft_location varchar2(200) NULL,
google_address_text varchar2(300) NULL,
google_address_text varchar2(300) NOT NULL,
level_id number(12) NULL,
client_id number(12) NULL,
job_owner_id number(12) NULL,
......
......@@ -30,10 +30,10 @@ CREATE TABLE tl_job (
manually_closed char(1) NULL,
last_edited timestamp NULL,
is_ppj char(1) NULL,
industry varchar(200) NULL,
industry varchar(200) NOT NULL,
culture_statement varchar(2000) NULL,
draft_location varchar(200) NULL,
google_address_text varchar(300) NULL,
google_address_text varchar(300) NOT NULL,
level_id numeric(12) NULL,
client_id numeric(12) NULL,
job_owner_id numeric(12) NULL,
......
......@@ -1230,6 +1230,7 @@ public abstract class BaseJob extends BaseBusinessClass
metaInfo.put ("attribHelper", "EnumeratedAttributeHelper");
metaInfo.put ("dbcol", "industry");
metaInfo.put ("mandatory", "true");
metaInfo.put ("name", "Industry");
metaInfo.put ("type", "Industry");
......@@ -1287,6 +1288,7 @@ public abstract class BaseJob extends BaseBusinessClass
metaInfo.put ("dbcol", "google_address_text");
metaInfo.put ("length", "300");
metaInfo.put ("mandatory", "true");
metaInfo.put ("name", "GoogleAddressText");
metaInfo.put ("type", "String");
......@@ -3544,6 +3546,7 @@ public abstract class BaseJob extends BaseBusinessClass
oldAndNewIdentical = HELPER_Industry.compare (_Industry, newIndustry);
}
BusinessObjectParser.assertFieldCondition (newIndustry != null, this, FIELD_Industry, "mandatory");
if (FIELD_Industry_Validators.length > 0)
......@@ -3838,6 +3841,7 @@ public abstract class BaseJob extends BaseBusinessClass
oldAndNewIdentical = HELPER_GoogleAddressText.compare (_GoogleAddressText, newGoogleAddressText);
}
BusinessObjectParser.assertFieldCondition (newGoogleAddressText != null, this, FIELD_GoogleAddressText, "mandatory");
if (FIELD_GoogleAddressText_Validators.length > 0)
......@@ -10419,10 +10423,10 @@ public abstract class BaseJob extends BaseBusinessClass
result.add(HELPER_IsManuallyClosed.getAttribObject (getClass (), _IsManuallyClosed, false, FIELD_IsManuallyClosed));
result.add(HELPER_LastEdited.getAttribObject (getClass (), _LastEdited, false, FIELD_LastEdited));
result.add(HELPER_IsPPJ.getAttribObject (getClass (), _IsPPJ, false, FIELD_IsPPJ));
result.add(HELPER_Industry.getAttribObject (getClass (), _Industry, false, FIELD_Industry));
result.add(HELPER_Industry.getAttribObject (getClass (), _Industry, true, FIELD_Industry));
result.add(HELPER_CultureStatement.getAttribObject (getClass (), _CultureStatement, false, FIELD_CultureStatement));
result.add(HELPER_DraftLocation.getAttribObject (getClass (), _DraftLocation, false, FIELD_DraftLocation));
result.add(HELPER_GoogleAddressText.getAttribObject (getClass (), _GoogleAddressText, false, FIELD_GoogleAddressText));
result.add(HELPER_GoogleAddressText.getAttribObject (getClass (), _GoogleAddressText, true, FIELD_GoogleAddressText));
result.add(HELPER_Email.getAttribObject (getClass (), _Email, false, FIELD_Email));
result.add(HELPER_Password.getAttribObject (getClass (), _Password, false, FIELD_Password));
result.add(HELPER_ConfirmPassword.getAttribObject (getClass (), _ConfirmPassword, false, FIELD_ConfirmPassword));
......
......@@ -53,10 +53,10 @@
<ATTRIB name="IsManuallyClosed" type="Boolean" dbcol="manually_closed" defaultValue="Boolean.FALSE"/>
<ATTRIB name="LastEdited" type="Date" dbcol="last_edited" />
<ATTRIB name="IsPPJ" type="Boolean" dbcol="is_ppj" defaultValue="Boolean.FALSE"/>
<ATTRIB name="Industry" type="Industry" dbcol="industry" attribHelper="EnumeratedAttributeHelper"/>
<ATTRIB name="Industry" type="Industry" dbcol="industry" mandatory="true" attribHelper="EnumeratedAttributeHelper"/>
<ATTRIB name="CultureStatement" type="String" dbcol="culture_statement" length="2000"/>
<ATTRIB name="DraftLocation" type="DraftLocation" dbcol="draft_location" attribHelper="EnumeratedAttributeHelper"/>
<ATTRIB name="GoogleAddressText" type="String" dbcol="google_address_text" length="300" />
<ATTRIB name="GoogleAddressText" type="String" dbcol="google_address_text" mandatory="true" length="300" />
<SINGLEREFERENCE name="Level" type="Level" dbcol="level_id" mandatory="false"/>
<SINGLEREFERENCE name="Client" type="Client" dbcol="client_id" backreferenceName="Jobs"/>
......
Markdown is supported
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