Commit b4973982 by Nilu Committed by Harsh Shah

BO changes

parent f95e2fa2
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_assessment_criteria</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="name" type="String" nullable="true" length="200"/>
<column name="importance" type="String" nullable="true" length="200"/>
<column name="assessment_type" type="String" nullable="true" length="200"/>
<column name="job_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_assessment_criteria" indexName="idx_tl_assessment_criteria_job_id" isUnique="false"><column name="job_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_assessment_criteria_answer</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="answer" type="Boolean" nullable="true"/>
<column name="notes" type="CLOB" nullable="true"/>
<column name="assessment_criteria_id" type="Long" length="11" nullable="true"/>
<column name="job_application_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_assessment_criteria_answer" indexName="idx_tl_assessment_criteria_answer_job_application_id" isUnique="false"><column name="job_application_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_culture_criteria</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="importance" type="String" nullable="true" length="200"/>
<column name="culture_element_id" type="Long" length="11" nullable="true"/>
<column name="culture_element_rating_id" type="Long" length="11" nullable="true"/>
<column name="job_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_culture_criteria" indexName="idx_tl_culture_criteria_job_id" isUnique="false"><column name="job_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_culture_criteria_answer</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="culture_criteria_id" type="Long" length="11" nullable="true"/>
<column name="selected_question_id" type="Long" length="11" nullable="true"/>
<column name="job_application_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_culture_criteria_answer" indexName="idx_tl_culture_criteria_answer_job_application_id" isUnique="false"><column name="job_application_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_job</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="job_title" type="String" nullable="true" length="500"/>
<column name="job_description" type="CLOB" nullable="true"/>
<column name="job_status" type="String" nullable="true" length="200"/>
<column name="apply_by" type="Date" nullable="true"/>
<column name="include_assessment_criteria" type="Boolean" nullable="true"/>
<column name="assessment_type" type="String" nullable="true" length="200"/>
<column name="job_link" type="String" nullable="true" length="100"/>
<column name="level_id" type="Long" length="11" nullable="true"/>
<column name="secuser_id" type="Long" length="11" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_job_application</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="cv" type="BLOB" nullable="true"/>
<column name="candidate_id" type="Long" length="11" nullable="true"/>
<column name="job_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job_application" indexName="idx_tl_job_application_candidate_id" isUnique="false"><column name="candidate_id"/></NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job_application" indexName="idx_tl_job_application_job_id" isUnique="false"><column name="job_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
-- DROP TABLE tl_assessment_criteria;
CREATE TABLE tl_assessment_criteria (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
name varchar(200) NULL,
importance varchar(200) NULL,
assessment_type varchar(200) NULL,
job_id numeric(12) NULL
);
ALTER TABLE tl_assessment_criteria ADD
CONSTRAINT PK_tl_assessment_criteria PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_assessment_criteria_job_id
ON tl_assessment_criteria (job_id);
-- DROP TABLE tl_assessment_criteria_answer;
CREATE TABLE tl_assessment_criteria_answer (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
answer char(1) NULL,
notes text NULL,
assessment_criteria_id numeric(12) NULL,
job_application_id numeric(12) NULL
);
ALTER TABLE tl_assessment_criteria_answer ADD
CONSTRAINT PK_tl_assessment_criteria_answer PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_assessment_criteria_answer_job_application_id
ON tl_assessment_criteria_answer (job_application_id);
-- DROP TABLE tl_culture_criteria;
CREATE TABLE tl_culture_criteria (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
importance varchar(200) NULL,
culture_element_id numeric(12) NULL,
culture_element_rating_id numeric(12) NULL,
job_id numeric(12) NULL
);
ALTER TABLE tl_culture_criteria ADD
CONSTRAINT PK_tl_culture_criteria PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_culture_criteria_job_id
ON tl_culture_criteria (job_id);
-- DROP TABLE tl_culture_criteria_answer;
CREATE TABLE tl_culture_criteria_answer (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
culture_criteria_id numeric(12) NULL,
selected_question_id numeric(12) NULL,
job_application_id numeric(12) NULL
);
ALTER TABLE tl_culture_criteria_answer ADD
CONSTRAINT PK_tl_culture_criteria_answer PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_culture_criteria_answer_job_application_id
ON tl_culture_criteria_answer (job_application_id);
-- DROP TABLE tl_job;
CREATE TABLE tl_job (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
job_title varchar(500) NULL,
job_description text NULL,
job_status varchar(200) NULL,
apply_by datetime NULL,
include_assessment_criteria char(1) NULL,
assessment_type varchar(200) NULL,
job_link varchar(100) NULL,
level_id numeric(12) NULL,
secuser_id numeric(12) NULL
);
ALTER TABLE tl_job ADD
CONSTRAINT PK_tl_job PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE tl_job_application;
CREATE TABLE tl_job_application (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
cv image NULL,
candidate_id numeric(12) NULL,
job_id numeric(12) NULL
);
ALTER TABLE tl_job_application ADD
CONSTRAINT PK_tl_job_application PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_job_application_candidate_id
ON tl_job_application (candidate_id);
CREATE INDEX idx_tl_job_application_job_id
ON tl_job_application (job_id);
-- DROP TABLE tl_assessment_criteria;
CREATE TABLE tl_assessment_criteria (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
name varchar2(200) NULL,
importance varchar2(200) NULL,
assessment_type varchar2(200) NULL,
job_id number(12) NULL
);
ALTER TABLE tl_assessment_criteria ADD
CONSTRAINT PK_tl_assessment_criteria PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_assessment_criteria_job_id
ON tl_assessment_criteria (job_id);
-- DROP TABLE tl_assessment_criteria_answer;
CREATE TABLE tl_assessment_criteria_answer (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
answer char(1) NULL,
notes clob NULL,
assessment_criteria_id number(12) NULL,
job_application_id number(12) NULL
);
ALTER TABLE tl_assessment_criteria_answer ADD
CONSTRAINT PK_tl_assessment_criteria_answer PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_assessment_criteria_answer_job_application_id
ON tl_assessment_criteria_answer (job_application_id);
-- DROP TABLE tl_culture_criteria;
CREATE TABLE tl_culture_criteria (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
importance varchar2(200) NULL,
culture_element_id number(12) NULL,
culture_element_rating_id number(12) NULL,
job_id number(12) NULL
);
ALTER TABLE tl_culture_criteria ADD
CONSTRAINT PK_tl_culture_criteria PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_culture_criteria_job_id
ON tl_culture_criteria (job_id);
-- DROP TABLE tl_culture_criteria_answer;
CREATE TABLE tl_culture_criteria_answer (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
culture_criteria_id number(12) NULL,
selected_question_id number(12) NULL,
job_application_id number(12) NULL
);
ALTER TABLE tl_culture_criteria_answer ADD
CONSTRAINT PK_tl_culture_criteria_answer PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_culture_criteria_answer_job_application_id
ON tl_culture_criteria_answer (job_application_id);
-- DROP TABLE tl_job;
CREATE TABLE tl_job (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
job_title varchar2(500) NULL,
job_description clob NULL,
job_status varchar2(200) NULL,
apply_by date NULL,
include_assessment_criteria char(1) NULL,
assessment_type varchar2(200) NULL,
job_link varchar2(100) NULL,
level_id number(12) NULL,
secuser_id number(12) NULL
);
ALTER TABLE tl_job ADD
CONSTRAINT PK_tl_job PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE tl_job_application;
CREATE TABLE tl_job_application (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
cv blob NULL,
candidate_id number(12) NULL,
job_id number(12) NULL
);
ALTER TABLE tl_job_application ADD
CONSTRAINT PK_tl_job_application PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_job_application_candidate_id
ON tl_job_application (candidate_id);
CREATE INDEX idx_tl_job_application_job_id
ON tl_job_application (job_id);
-- @AutoRun
-- drop table tl_assessment_criteria;
CREATE TABLE tl_assessment_criteria (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
name varchar(200) NULL,
importance varchar(200) NULL,
assessment_type varchar(200) NULL,
job_id numeric(12) NULL
);
ALTER TABLE tl_assessment_criteria ADD
CONSTRAINT pk_tl_assessment_criteria PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_assessment_criteria_job_id
ON tl_assessment_criteria (job_id);
-- @AutoRun
-- drop table tl_assessment_criteria_answer;
CREATE TABLE tl_assessment_criteria_answer (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
answer char(1) NULL,
notes text NULL,
assessment_criteria_id numeric(12) NULL,
job_application_id numeric(12) NULL
);
ALTER TABLE tl_assessment_criteria_answer ADD
CONSTRAINT pk_tl_assessment_criteria_answer PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_assessment_criteria_answer_job_application_id
ON tl_assessment_criteria_answer (job_application_id);
-- @AutoRun
-- drop table tl_culture_criteria;
CREATE TABLE tl_culture_criteria (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
importance varchar(200) NULL,
culture_element_id numeric(12) NULL,
culture_element_rating_id numeric(12) NULL,
job_id numeric(12) NULL
);
ALTER TABLE tl_culture_criteria ADD
CONSTRAINT pk_tl_culture_criteria PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_culture_criteria_job_id
ON tl_culture_criteria (job_id);
-- @AutoRun
-- drop table tl_culture_criteria_answer;
CREATE TABLE tl_culture_criteria_answer (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
culture_criteria_id numeric(12) NULL,
selected_question_id numeric(12) NULL,
job_application_id numeric(12) NULL
);
ALTER TABLE tl_culture_criteria_answer ADD
CONSTRAINT pk_tl_culture_criteria_answer PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_culture_criteria_answer_job_application_id
ON tl_culture_criteria_answer (job_application_id);
-- @AutoRun
-- drop table tl_job;
CREATE TABLE tl_job (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
job_title varchar(500) NULL,
job_description text NULL,
job_status varchar(200) NULL,
apply_by timestamp NULL,
include_assessment_criteria char(1) NULL,
assessment_type varchar(200) NULL,
job_link varchar(100) NULL,
level_id numeric(12) NULL,
secuser_id numeric(12) NULL
);
ALTER TABLE tl_job ADD
CONSTRAINT pk_tl_job PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table tl_job_application;
CREATE TABLE tl_job_application (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
cv bytea NULL,
candidate_id numeric(12) NULL,
job_id numeric(12) NULL
);
ALTER TABLE tl_job_application ADD
CONSTRAINT pk_tl_job_application PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_job_application_candidate_id
ON tl_job_application (candidate_id);
CREATE INDEX idx_tl_job_application_job_id
ON tl_job_application (job_id);
package performa.orm;
public class AssessmentCriteria extends BaseAssessmentCriteria
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public AssessmentCriteria ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="AssessmentCriteria" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<TABLE name="tl_assessment_criteria" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Name" type="String" dbcol="name" length="200"/>
<ATTRIB name="Importance" type="Importance" dbcol="importance" attribHelper="EnumeratedAttributeHelper" />
<ATTRIB name="AssessmentType" type="AssessmentType" dbcol="assessment_type" attribHelper="EnumeratedAttributeHelper" />
<SINGLEREFERENCE name="Job" type="Job" dbcol="job_id" backreferenceName="AssessmentCriterias"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_assessment_criteria.object_id is not null" orderBy="tl_assessment_criteria.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
public class AssessmentCriteriaAnswer extends BaseAssessmentCriteriaAnswer
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public AssessmentCriteriaAnswer ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="AssessmentCriteriaAnswer" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<TABLE name="tl_assessment_criteria_answer" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Answer" type="Boolean" dbcol="answer"/>
<ATTRIB name="Notes" type="String" dbcol="notes"/>
<SINGLEREFERENCE name="AssessmentCriteria" type="AssessmentCriteria" dbcol="assessment_criteria_id"/>
<SINGLEREFERENCE name="JobApplication" type="JobApplication" dbcol="job_application_id" backreferenceName="AssessmentCriteriaAnswers"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_assessment_criteria_answer.object_id is not null" orderBy="tl_assessment_criteria_answer.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<MULTIPLEREFERENCE name="TestAnalysises" type="TestAnalysis" backreferenceName="Candidate" /> <MULTIPLEREFERENCE name="TestAnalysises" type="TestAnalysis" backreferenceName="Candidate" />
<MULTIPLEREFERENCE name="Answers" type="Answer" backreferenceName="Candidate" /> <MULTIPLEREFERENCE name="Answers" type="Answer" backreferenceName="Candidate" />
<MULTIPLEREFERENCE name="JobApplications" type="JobApplication" backreferenceName="Candidate" />
<TABLE name="tl_candidate" tablePrefix="object" polymorphic="FALSE"> <TABLE name="tl_candidate" tablePrefix="object" polymorphic="FALSE">
......
package performa.orm;
public class CultureCriteria extends BaseCultureCriteria
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public CultureCriteria ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="CultureCriteria" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<TABLE name="tl_culture_criteria" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Importance" type="Importance" dbcol="importance" attribHelper="EnumeratedAttributeHelper" />
<SINGLEREFERENCE name="CultureElement" type="CultureElement" dbcol="culture_element_id"/>
<SINGLEREFERENCE name="CultureElementRating" type="CultureElementRating" dbcol="culture_element_rating_id"/>
<SINGLEREFERENCE name="Job" type="Job" dbcol="job_id" backreferenceName="CultureCriterias"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_culture_criteria.object_id is not null" orderBy="tl_culture_criteria.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
public class CultureCriteriaAnswer extends BaseCultureCriteriaAnswer
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public CultureCriteriaAnswer ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="CultureCriteriaAnswer" package="performa.orm">
<TABLE name="tl_culture_criteria_answer" tablePrefix="object" polymorphic="FALSE">
<SINGLEREFERENCE name="CultureCriteria" type="CultureCriteria" dbcol="culture_criteria_id"/>
<SINGLEREFERENCE name="SelectedQuestion" type="CultureElementQuestion" dbcol="selected_question_id"/>
<SINGLEREFERENCE name="JobApplication" type="JobApplication" dbcol="job_application_id" backreferenceName="CultureCriteriaAnswers"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_culture_criteria_answer.object_id is not null" orderBy="tl_culture_criteria_answer.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
public class Job extends BaseJob
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Job ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="Job" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<IMPORT value="oneit.security.*"/>
<MULTIPLEREFERENCE name="JobApplications" type="JobApplication" backreferenceName="Job" />
<MULTIPLEREFERENCE name="AssessmentCriterias" type="AssessmentCriteria" backreferenceName="Job" />
<MULTIPLEREFERENCE name="CultureCriterias" type="CultureCriteria" backreferenceName="Job" />
<TABLE name="tl_job" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="JobTitle" type="String" dbcol="job_title" length="500"/>
<ATTRIB name="JobDescription" type="String" dbcol="job_description"/>
<ATTRIB name="JobStatus" type="JobStatus" dbcol="job_status" attribHelper="EnumeratedAttributeHelper" />
<ATTRIB name="ApplyBy" type="Date" dbcol="apply_by"/>
<ATTRIB name="IncludeAssessmentCriteria" type="Boolean" dbcol="include_assessment_criteria"/>
<ATTRIB name="AssessmentType" type="AssessmentType" dbcol="assessment_type" attribHelper="EnumeratedAttributeHelper" />
<ATTRIB name="JobLink" type="String" dbcol="job_link" length="100"/>
<SINGLEREFERENCE name="Level" type="Level" dbcol="level_id" />
<SINGLEREFERENCE name="SecUser" type="SecUser" dbcol="secuser_id" />
</TABLE>
<SEARCH type="All" paramFilter="tl_job.object_id is not null" orderBy="tl_job.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
public class JobApplication extends BaseJobApplication
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public JobApplication ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="JobApplication" package="performa.orm">
<MULTIPLEREFERENCE name="AssessmentCriteriaAnswers" type="AssessmentCriteriaAnswer" backreferenceName="JobApplication" />
<MULTIPLEREFERENCE name="CultureCriteriaAnswers" type="CultureCriteriaAnswer" backreferenceName="JobApplication" />
<TABLE name="tl_job_application" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="CV" type="BinaryContent" dbcol="cv" binaryHandler="loggedin" attribHelper="BLOBAttributeHelper" attribHelperInstance="BLOBAttributeHelper.INSTANCE"/>
<SINGLEREFERENCE name="Candidate" type="Candidate" dbcol="candidate_id" backreferenceName="JobApplications"/>
<SINGLEREFERENCE name="Job" type="Job" dbcol="job_id" backreferenceName="JobApplications"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_job_application.object_id is not null" orderBy="tl_job_application.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
/**
* This class was generated using constGen.bat.
* DO NOT MODIFY THIS CODE.
* Edit the associated .xml file, and regenerate this file
* constGen (directory) (file minus extension)
* e.g. constGen C:\...\sql FieldType
*/
public class AssessmentType extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_AssessmentType = new AssessmentTypeFactory();
public static final AssessmentType SKILL = new AssessmentType ("SKILL", "SKILL", "Skill", false);
public static final AssessmentType QUALIFICATION = new AssessmentType ("QUALIFICATION", "QUALIFICATION", "Qualification", false);
public static final AssessmentType EXPERIENCE = new AssessmentType ("EXPERIENCE", "EXPERIENCE", "Experience", false);
public static final AssessmentType KNOWLEDGE = new AssessmentType ("KNOWLEDGE", "KNOWLEDGE", "Knowledge", false);
private static final AssessmentType[] allAssessmentTypes =
new AssessmentType[] { SKILL,QUALIFICATION,EXPERIENCE,KNOWLEDGE};
private static AssessmentType[] getAllAssessmentTypes ()
{
return allAssessmentTypes;
}
private AssessmentType (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allAssessmentTypes);
static
{
defineAdditionalData ();
}
public boolean isEqual (AssessmentType other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return AssessmentType.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return AssessmentType.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_AssessmentType;
}
public static AssessmentType forName (String name)
{
if (name == null) { return null; }
AssessmentType[] all = getAllAssessmentTypes();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static AssessmentType forValue (String value)
{
if (value == null) { return null; }
AssessmentType[] all = getAllAssessmentTypes();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllAssessmentTypes (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllAssessmentTypes());
}
public static AssessmentType[] getAssessmentTypeArray ()
{
return (AssessmentType[])getAllAssessmentTypes().clone ();
}
public static void defineAdditionalData ()
{
}
static class AssessmentTypeFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return AssessmentType.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return AssessmentType.forValue (name);
}
public Enumeration getAll ()
{
return AssessmentType.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
return attribs;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="AssessmentType">
<VALUE name="SKILL" value="SKILL" description="Skill"/>
<VALUE name="QUALIFICATION" value="QUALIFICATION" description="Qualification"/>
<VALUE name="EXPERIENCE" value="EXPERIENCE" description="Experience"/>
<VALUE name="KNOWLEDGE" value="KNOWLEDGE" description="Knowledge"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
/**
* This class was generated using constGen.bat.
* DO NOT MODIFY THIS CODE.
* Edit the associated .xml file, and regenerate this file
* constGen (directory) (file minus extension)
* e.g. constGen C:\...\sql FieldType
*/
public class Importance extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_Importance = new ImportanceFactory();
public static final Importance ESSENTIAL = new Importance ("ESSENTIAL", "OPEN", "Essential", false);
public static final Importance HIGHLY_DESIRABLE = new Importance ("HIGHLY_DESIRABLE", "HIGHLY_DESIRABLE", "Highly Desirable", false);
public static final Importance DESIRABLE = new Importance ("DESIRABLE", "DESIRABLE", "Desirable", false);
private static final Importance[] allImportances =
new Importance[] { ESSENTIAL,HIGHLY_DESIRABLE,DESIRABLE};
private static Importance[] getAllImportances ()
{
return allImportances;
}
private Importance (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allImportances);
static
{
defineAdditionalData ();
}
public boolean isEqual (Importance other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return Importance.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return Importance.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_Importance;
}
public static Importance forName (String name)
{
if (name == null) { return null; }
Importance[] all = getAllImportances();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static Importance forValue (String value)
{
if (value == null) { return null; }
Importance[] all = getAllImportances();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllImportances (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllImportances());
}
public static Importance[] getImportanceArray ()
{
return (Importance[])getAllImportances().clone ();
}
public static void defineAdditionalData ()
{
}
static class ImportanceFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return Importance.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return Importance.forValue (name);
}
public Enumeration getAll ()
{
return Importance.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
return attribs;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="Importance">
<VALUE name="ESSENTIAL" value="OPEN" description="Essential"/>
<VALUE name="HIGHLY_DESIRABLE" value="HIGHLY_DESIRABLE" description="Highly Desirable"/>
<VALUE name="DESIRABLE" value="DESIRABLE" description="Desirable"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
/**
* This class was generated using constGen.bat.
* DO NOT MODIFY THIS CODE.
* Edit the associated .xml file, and regenerate this file
* constGen (directory) (file minus extension)
* e.g. constGen C:\...\sql FieldType
*/
public class JobStatus extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_JobStatus = new JobStatusFactory();
public static final JobStatus OPEN = new JobStatus ("OPEN", "OPEN", "Open", false);
public static final JobStatus COMPLETE = new JobStatus ("COMPLETE", "COMPLETE", "Complete", false);
public static final JobStatus DRAFT = new JobStatus ("DRAFT", "DRAFT", "Draft", false);
private static final JobStatus[] allJobStatuss =
new JobStatus[] { OPEN,COMPLETE,DRAFT};
private static JobStatus[] getAllJobStatuss ()
{
return allJobStatuss;
}
private JobStatus (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allJobStatuss);
static
{
defineAdditionalData ();
}
public boolean isEqual (JobStatus other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return JobStatus.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return JobStatus.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_JobStatus;
}
public static JobStatus forName (String name)
{
if (name == null) { return null; }
JobStatus[] all = getAllJobStatuss();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static JobStatus forValue (String value)
{
if (value == null) { return null; }
JobStatus[] all = getAllJobStatuss();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllJobStatuss (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllJobStatuss());
}
public static JobStatus[] getJobStatusArray ()
{
return (JobStatus[])getAllJobStatuss().clone ();
}
public static void defineAdditionalData ()
{
}
static class JobStatusFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return JobStatus.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return JobStatus.forValue (name);
}
public Enumeration getAll ()
{
return JobStatus.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
return attribs;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="JobStatus">
<VALUE name="OPEN" value="OPEN" description="Open"/>
<VALUE name="COMPLETE" value="COMPLETE" description="Complete"/>
<VALUE name="DRAFT" value="DRAFT" description="Draft"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_assessment_criteria</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="name" type="String" nullable="true" length="200"/>
<column name="importance" type="String" nullable="true" length="200"/>
<column name="assessment_type" type="String" nullable="true" length="200"/>
<column name="job_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_assessment_criteria" indexName="idx_tl_assessment_criteria_job_id" isUnique="false"><column name="job_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_assessment_criteria_answer</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="answer" type="Boolean" nullable="true"/>
<column name="notes" type="CLOB" nullable="true"/>
<column name="assessment_criteria_id" type="Long" length="11" nullable="true"/>
<column name="job_application_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_assessment_criteria_answer" indexName="idx_tl_assessment_criteria_answer_job_application_id" isUnique="false"><column name="job_application_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_culture_criteria</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="importance" type="String" nullable="true" length="200"/>
<column name="culture_element_id" type="Long" length="11" nullable="true"/>
<column name="culture_element_rating_id" type="Long" length="11" nullable="true"/>
<column name="job_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_culture_criteria" indexName="idx_tl_culture_criteria_job_id" isUnique="false"><column name="job_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_culture_criteria_answer</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="culture_criteria_id" type="Long" length="11" nullable="true"/>
<column name="selected_question_id" type="Long" length="11" nullable="true"/>
<column name="job_application_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_culture_criteria_answer" indexName="idx_tl_culture_criteria_answer_job_application_id" isUnique="false"><column name="job_application_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_job</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="job_title" type="String" nullable="true" length="500"/>
<column name="job_description" type="CLOB" nullable="true"/>
<column name="job_status" type="String" nullable="true" length="200"/>
<column name="apply_by" type="Date" nullable="true"/>
<column name="include_assessment_criteria" type="Boolean" nullable="true"/>
<column name="assessment_type" type="String" nullable="true" length="200"/>
<column name="job_link" type="String" nullable="true" length="100"/>
<column name="level_id" type="Long" length="11" nullable="true"/>
<column name="secuser_id" type="Long" length="11" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au"><NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.DefineTableOperation">
<tableName factory="String">tl_job_application</tableName>
<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_created_date" type="Date" nullable="false" length="22"/>
<column name="cv" type="BLOB" nullable="true"/>
<column name="candidate_id" type="Long" length="11" nullable="true"/>
<column name="job_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job_application" indexName="idx_tl_job_application_candidate_id" isUnique="false"><column name="candidate_id"/></NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job_application" indexName="idx_tl_job_application_job_id" isUnique="false"><column name="job_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
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