Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
89583bd9
Commit
89583bd9
authored
Jul 07, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mandatory field validation to AnswerNo.
parent
d0138324
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
20 deletions
+11
-20
Answer.xml
cmsWebApp/sql/Answer.xml
+1
-1
Answer.sql
cmsWebApp/sql/ms/Answer.sql
+1
-1
Answer.sql
cmsWebApp/sql/oracle/Answer.sql
+1
-1
Answer.sql
cmsWebApp/sql/postgres/Answer.sql
+1
-1
Answer.java
cmsWebApp/src/performa/orm/Answer.java
+0
-13
Answer.xml
cmsWebApp/src/performa/orm/Answer.xml
+1
-1
BaseAnswer.java
cmsWebApp/src/performa/orm/BaseAnswer.java
+3
-1
fieldnamesOverride.txt
...xtensions/applicantportal/messages/fieldnamesOverride.txt
+3
-1
No files found.
cmsWebApp/sql/Answer.xml
View file @
89583bd9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<column
name=
"object_id"
type=
"Long"
nullable=
"false"
length=
"11"
/>
<column
name=
"object_id"
type=
"Long"
nullable=
"false"
length=
"11"
/>
<column
name=
"object_last_updated_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"object_last_updated_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"object_created_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"object_created_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"answer_number"
type=
"Long"
nullable=
"
tru
e"
/>
<column
name=
"answer_number"
type=
"Long"
nullable=
"
fals
e"
/>
<column
name=
"section_number"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"section_number"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"job_application_id"
type=
"Long"
length=
"11"
nullable=
"false"
/>
<column
name=
"job_application_id"
type=
"Long"
length=
"11"
nullable=
"false"
/>
<column
name=
"quest_number"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"quest_number"
type=
"Long"
length=
"11"
nullable=
"true"
/>
...
...
cmsWebApp/sql/ms/Answer.sql
View file @
89583bd9
...
@@ -8,7 +8,7 @@ CREATE TABLE tl_answer (
...
@@ -8,7 +8,7 @@ CREATE TABLE tl_answer (
object_last_updated_date
datetime
DEFAULT
getdate
()
NOT
NULL
,
object_last_updated_date
datetime
DEFAULT
getdate
()
NOT
NULL
,
object_created_date
datetime
DEFAULT
getdate
()
NOT
NULL
object_created_date
datetime
DEFAULT
getdate
()
NOT
NULL
,
,
answer_number
numeric
(
12
)
NULL
,
answer_number
numeric
(
12
)
N
OT
N
ULL
,
section_number
numeric
(
12
)
NULL
,
section_number
numeric
(
12
)
NULL
,
job_application_id
numeric
(
12
)
NOT
NULL
,
job_application_id
numeric
(
12
)
NOT
NULL
,
quest_number
numeric
(
12
)
NULL
quest_number
numeric
(
12
)
NULL
...
...
cmsWebApp/sql/oracle/Answer.sql
View file @
89583bd9
...
@@ -9,7 +9,7 @@ CREATE TABLE tl_answer (
...
@@ -9,7 +9,7 @@ CREATE TABLE tl_answer (
object_last_updated_date
date
DEFAULT
SYSDATE
NOT
NULL
,
object_last_updated_date
date
DEFAULT
SYSDATE
NOT
NULL
,
object_created_date
date
DEFAULT
SYSDATE
NOT
NULL
object_created_date
date
DEFAULT
SYSDATE
NOT
NULL
,
,
answer_number
number
(
12
)
NULL
,
answer_number
number
(
12
)
N
OT
N
ULL
,
section_number
number
(
12
)
NULL
,
section_number
number
(
12
)
NULL
,
job_application_id
number
(
12
)
NOT
NULL
,
job_application_id
number
(
12
)
NOT
NULL
,
quest_number
number
(
12
)
NULL
quest_number
number
(
12
)
NULL
...
...
cmsWebApp/sql/postgres/Answer.sql
View file @
89583bd9
...
@@ -9,7 +9,7 @@ CREATE TABLE tl_answer (
...
@@ -9,7 +9,7 @@ CREATE TABLE tl_answer (
object_last_updated_date
timestamp
DEFAULT
NOW
()
NOT
NULL
,
object_last_updated_date
timestamp
DEFAULT
NOW
()
NOT
NULL
,
object_created_date
timestamp
DEFAULT
NOW
()
NOT
NULL
object_created_date
timestamp
DEFAULT
NOW
()
NOT
NULL
,
,
answer_number
numeric
(
12
)
NULL
,
answer_number
numeric
(
12
)
N
OT
N
ULL
,
section_number
numeric
(
12
)
NULL
,
section_number
numeric
(
12
)
NULL
,
job_application_id
numeric
(
12
)
NOT
NULL
,
job_application_id
numeric
(
12
)
NOT
NULL
,
quest_number
numeric
(
12
)
NULL
quest_number
numeric
(
12
)
NULL
...
...
cmsWebApp/src/performa/orm/Answer.java
View file @
89583bd9
package
performa
.
orm
;
package
performa
.
orm
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.utils.MultiException
;
import
oneit.utils.filter.CollectionFilter
;
import
oneit.utils.filter.CollectionFilter
;
import
oneit.utils.filter.Filter
;
import
oneit.utils.filter.Filter
;
import
oneit.utils.parsers.FieldException
;
import
oneit.utils.parsers.FieldException
;
...
@@ -17,18 +16,6 @@ public class Answer extends BaseAnswer
...
@@ -17,18 +16,6 @@ public class Answer extends BaseAnswer
{
{
// Do not add any code to this, always put it in initialiseNewObject
// Do not add any code to this, always put it in initialiseNewObject
}
}
@Override
public
void
validate
(
MultiException
e
)
{
if
(
this
.
getAnswerNo
()==
null
)
{
this
.
delete
();
}
super
.
validate
(
e
);
}
@Override
@Override
...
...
cmsWebApp/src/performa/orm/Answer.xml
View file @
89583bd9
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<TABLE
name=
"tl_answer"
tablePrefix=
"object"
polymorphic=
"FALSE"
>
<TABLE
name=
"tl_answer"
tablePrefix=
"object"
polymorphic=
"FALSE"
>
<ATTRIB
name=
"AnswerNo"
type=
"Integer"
dbcol=
"answer_number"
/>
<ATTRIB
name=
"AnswerNo"
type=
"Integer"
dbcol=
"answer_number"
mandatory=
"true"
/>
<SINGLEREFERENCE
name=
"Section"
type=
"Section"
dbcol=
"section_number"
/>
<SINGLEREFERENCE
name=
"Section"
type=
"Section"
dbcol=
"section_number"
/>
<SINGLEREFERENCE
name=
"JobApplication"
type=
"JobApplication"
dbcol=
"job_application_id"
backreferenceName=
"ProfileAssessmentAnswers"
mandatory=
"true"
/>
<SINGLEREFERENCE
name=
"JobApplication"
type=
"JobApplication"
dbcol=
"job_application_id"
backreferenceName=
"ProfileAssessmentAnswers"
mandatory=
"true"
/>
...
...
cmsWebApp/src/performa/orm/BaseAnswer.java
View file @
89583bd9
...
@@ -152,6 +152,7 @@ public abstract class BaseAnswer extends BaseBusinessClass
...
@@ -152,6 +152,7 @@ public abstract class BaseAnswer extends BaseBusinessClass
Map
metaInfo
=
new
HashMap
();
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"dbcol"
,
"answer_number"
);
metaInfo
.
put
(
"dbcol"
,
"answer_number"
);
metaInfo
.
put
(
"mandatory"
,
"true"
);
metaInfo
.
put
(
"name"
,
"AnswerNo"
);
metaInfo
.
put
(
"name"
,
"AnswerNo"
);
metaInfo
.
put
(
"type"
,
"Integer"
);
metaInfo
.
put
(
"type"
,
"Integer"
);
...
@@ -280,6 +281,7 @@ public abstract class BaseAnswer extends BaseBusinessClass
...
@@ -280,6 +281,7 @@ public abstract class BaseAnswer extends BaseBusinessClass
oldAndNewIdentical
=
HELPER_AnswerNo
.
compare
(
_AnswerNo
,
newAnswerNo
);
oldAndNewIdentical
=
HELPER_AnswerNo
.
compare
(
_AnswerNo
,
newAnswerNo
);
}
}
BusinessObjectParser
.
assertFieldCondition
(
newAnswerNo
!=
null
,
this
,
FIELD_AnswerNo
,
"mandatory"
);
if
(
FIELD_AnswerNo_Validators
.
length
>
0
)
if
(
FIELD_AnswerNo_Validators
.
length
>
0
)
...
@@ -1381,7 +1383,7 @@ public abstract class BaseAnswer extends BaseBusinessClass
...
@@ -1381,7 +1383,7 @@ public abstract class BaseAnswer extends BaseBusinessClass
List
result
=
super
.
getAttributes
();
List
result
=
super
.
getAttributes
();
result
.
add
(
HELPER_AnswerNo
.
getAttribObject
(
getClass
(),
_AnswerNo
,
fals
e
,
FIELD_AnswerNo
));
result
.
add
(
HELPER_AnswerNo
.
getAttribObject
(
getClass
(),
_AnswerNo
,
tru
e
,
FIELD_AnswerNo
));
return
result
;
return
result
;
}
}
...
...
cmsWebApp/webroot/extensions/applicantportal/messages/fieldnamesOverride.txt
View file @
89583bd9
...
@@ -4,4 +4,6 @@ Job.Email = Email Address
...
@@ -4,4 +4,6 @@ Job.Email = Email Address
SecUser.FirstName = First Name
SecUser.FirstName = First Name
SecUser.LastName = Last Name
SecUser.LastName = Last Name
CultureCriteriaAnswer.SelectedQuestion = Question
CultureCriteriaAnswer.SelectedQuestion = Question
Answer.AnswerNo = Answer
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment