Commit 72f8b4ef by Nilu

BO changes

parent cc4ef9f0
<?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">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="quest_number" type="Long" nullable="true"/>
<column name="answer_number" type="Long" nullable="true"/>
<column name="candidate_id" type="Long" length="11" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
......@@ -19,8 +19,6 @@
<column name="gender" type="String" nullable="true" length="10"/>
<column name="password" type="String" nullable="true" length="15"/>
<column name="date_taken" type="Date" nullable="true"/>
<column name="section_number" type="Long" nullable="true"/>
<column name="left_quest_number" type="Long" nullable="true"/>
<column name="location" type="String" nullable="true" length="80"/>
<column name="contact_phone" type="String" nullable="true" length="80"/>
<column name="email" type="String" nullable="true" length="60"/>
......
......@@ -8,11 +8,9 @@
<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="factor_number" type="Long" nullable="true"/>
<column name="factor_hdr_desc" type="String" nullable="true" length="30"/>
<column name="class_code" type="String" nullable="true" length="15"/>
<column name="factor_hdr_notes" type="CLOB" nullable="true"/>
<column name="level_number" type="Long" nullable="true"/>
<column name="left_annot" type="String" nullable="true" length="60"/>
<column name="right_annot" type="String" nullable="true" length="60"/>
<column name="factor_hdr_desc_schinese" type="String" nullable="true" length="120"/>
......@@ -21,6 +19,9 @@
<column name="factor_hdr_desc_thai" type="String" nullable="true" length="120"/>
<column name="z_score_wght" type="Double" nullable="true"/>
<column name="z_score_wght_2" type="Double" nullable="true"/>
<column name="level_number" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="factor_hdr" indexName="idx_factor_hdr_level_number" isUnique="false"><column name="level_number"/></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">factor_lin</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="reverse_score_flag" type="String" nullable="true" length="15"/>
<column name="factor_number" 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">level_factor</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="from_score" type="Long" nullable="true"/>
<column name="to_score" type="Long" nullable="true"/>
<column name="narrative_code" type="String" nullable="true" length="15"/>
<column name="color_code" type="String" nullable="true" length="15"/>
<column name="factor_number" type="Long" length="11" nullable="true"/>
<column name="level_number" 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">level</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="level_number" type="Long" nullable="true"/>
<column name="level_desc" type="String" nullable="true" length="30"/>
<column name="level_notes" type="CLOB" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
......@@ -12,16 +12,6 @@
<column name="left_quest" type="String" nullable="true" length="80"/>
<column name="right_quest_number" type="Long" nullable="true"/>
<column name="right_quest" type="String" nullable="true" length="80"/>
<column name="left_quest_schinese" type="CLOB" nullable="true"/>
<column name="right_quest_schinese" type="CLOB" nullable="true"/>
<column name="left_quest_chinese" type="CLOB" nullable="true"/>
<column name="right_quest_chinese" type="CLOB" nullable="true"/>
<column name="left_quest_korean" type="CLOB" nullable="true"/>
<column name="right_quest_korean" type="CLOB" nullable="true"/>
<column name="left_quest_thai" type="CLOB" nullable="true"/>
<column name="right_quest_thai" type="CLOB" nullable="true"/>
<column name="left_quest_viet" type="CLOB" nullable="true"/>
<column name="right_quest_viet" type="CLOB" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
-- DROP TABLE answer;
CREATE TABLE answer (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
quest_number numeric(12) NULL,
answer_number numeric(12) NULL,
candidate_id numeric(12) NULL
);
ALTER TABLE answer ADD
CONSTRAINT PK_answer PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
......@@ -19,8 +19,6 @@ CREATE TABLE candidate (
gender varchar(10) NULL,
password varchar(15) NULL,
date_taken datetime NULL,
section_number numeric(12) NULL,
left_quest_number numeric(12) NULL,
location varchar(80) NULL,
contact_phone varchar(80) NULL,
email varchar(60) NULL
......
......@@ -8,11 +8,9 @@ CREATE TABLE factor_hdr (
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
factor_number numeric(12) NULL,
factor_hdr_desc varchar(30) NULL,
class_code varchar(15) NULL,
factor_hdr_notes text NULL,
level_number numeric(12) NULL,
left_annot varchar(60) NULL,
right_annot varchar(60) NULL,
factor_hdr_desc_schinese varchar(120) NULL,
......@@ -20,7 +18,8 @@ CREATE TABLE factor_hdr (
factor_hdr_desc_korean varchar(120) NULL,
factor_hdr_desc_thai varchar(120) NULL,
z_score_wght numeric(20,5) NULL,
z_score_wght_2 numeric(20,5) NULL
z_score_wght_2 numeric(20,5) NULL,
level_number numeric(12) NULL
);
......@@ -33,3 +32,5 @@ ALTER TABLE factor_hdr ADD
CREATE INDEX idx_factor_hdr_level_number
ON factor_hdr (level_number);
-- DROP TABLE factor_lin;
CREATE TABLE factor_lin (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
reverse_score_flag varchar(15) NULL,
factor_number numeric(12) NULL
);
ALTER TABLE factor_lin ADD
CONSTRAINT PK_factor_lin PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE level_factor;
CREATE TABLE level_factor (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
from_score numeric(12) NULL,
to_score numeric(12) NULL,
narrative_code varchar(15) NULL,
color_code varchar(15) NULL,
factor_number numeric(12) NULL,
level_number numeric(12) NULL
);
ALTER TABLE level_factor ADD
CONSTRAINT PK_level_factor PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE level;
CREATE TABLE level (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
level_number numeric(12) NULL,
level_desc varchar(30) NULL,
level_notes text NULL
);
ALTER TABLE level ADD
CONSTRAINT PK_level PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
......@@ -11,17 +11,7 @@ CREATE TABLE quest_lin (
left_quest_number numeric(12) NULL,
left_quest varchar(80) NULL,
right_quest_number numeric(12) NULL,
right_quest varchar(80) NULL,
left_quest_schinese text NULL,
right_quest_schinese text NULL,
left_quest_chinese text NULL,
right_quest_chinese text NULL,
left_quest_korean text NULL,
right_quest_korean text NULL,
left_quest_thai text NULL,
right_quest_thai text NULL,
left_quest_viet text NULL,
right_quest_viet text NULL
right_quest varchar(80) NULL
);
......
-- DROP TABLE answer;
CREATE TABLE answer (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
quest_number number(12) NULL,
answer_number number(12) NULL,
candidate_id number(12) NULL
);
ALTER TABLE answer ADD
CONSTRAINT PK_answer PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
......@@ -20,8 +20,6 @@ CREATE TABLE candidate (
gender varchar2(10) NULL,
password varchar2(15) NULL,
date_taken date NULL,
section_number number(12) NULL,
left_quest_number number(12) NULL,
location varchar2(80) NULL,
contact_phone varchar2(80) NULL,
email varchar2(60) NULL
......
......@@ -9,11 +9,9 @@ CREATE TABLE factor_hdr (
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
factor_number number(12) NULL,
factor_hdr_desc varchar2(30) NULL,
class_code varchar2(15) NULL,
factor_hdr_notes clob NULL,
level_number number(12) NULL,
left_annot varchar2(60) NULL,
right_annot varchar2(60) NULL,
factor_hdr_desc_schinese varchar2(120) NULL,
......@@ -21,7 +19,8 @@ CREATE TABLE factor_hdr (
factor_hdr_desc_korean varchar2(120) NULL,
factor_hdr_desc_thai varchar2(120) NULL,
z_score_wght number(20,5) NULL,
z_score_wght_2 number(20,5) NULL
z_score_wght_2 number(20,5) NULL,
level_number number(12) NULL
);
......@@ -34,3 +33,5 @@ ALTER TABLE factor_hdr ADD
CREATE INDEX idx_factor_hdr_level_number
ON factor_hdr (level_number);
-- DROP TABLE factor_lin;
CREATE TABLE factor_lin (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
reverse_score_flag varchar2(15) NULL,
factor_number number(12) NULL
);
ALTER TABLE factor_lin ADD
CONSTRAINT PK_factor_lin PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE level_factor;
CREATE TABLE level_factor (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
from_score number(12) NULL,
to_score number(12) NULL,
narrative_code varchar2(15) NULL,
color_code varchar2(15) NULL,
factor_number number(12) NULL,
level_number number(12) NULL
);
ALTER TABLE level_factor ADD
CONSTRAINT PK_level_factor PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE level;
CREATE TABLE level (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
level_number number(12) NULL,
level_desc varchar2(30) NULL,
level_notes clob NULL
);
ALTER TABLE level ADD
CONSTRAINT PK_level PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
......@@ -12,17 +12,7 @@ CREATE TABLE quest_lin (
left_quest_number number(12) NULL,
left_quest varchar2(80) NULL,
right_quest_number number(12) NULL,
right_quest varchar2(80) NULL,
left_quest_schinese clob NULL,
right_quest_schinese clob NULL,
left_quest_chinese clob NULL,
right_quest_chinese clob NULL,
left_quest_korean clob NULL,
right_quest_korean clob NULL,
left_quest_thai clob NULL,
right_quest_thai clob NULL,
left_quest_viet clob NULL,
right_quest_viet clob NULL
right_quest varchar2(80) NULL
);
......
-- @AutoRun
-- drop table answer;
CREATE TABLE answer (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
quest_number numeric(12) NULL,
answer_number numeric(12) NULL,
candidate_id numeric(12) NULL
);
ALTER TABLE answer ADD
CONSTRAINT pk_answer PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
......@@ -20,8 +20,6 @@ CREATE TABLE candidate (
gender varchar(10) NULL,
password varchar(15) NULL,
date_taken timestamp NULL,
section_number numeric(12) NULL,
left_quest_number numeric(12) NULL,
location varchar(80) NULL,
contact_phone varchar(80) NULL,
email varchar(60) NULL
......
......@@ -9,11 +9,9 @@ CREATE TABLE factor_hdr (
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
factor_number numeric(12) NULL,
factor_hdr_desc varchar(30) NULL,
class_code varchar(15) NULL,
factor_hdr_notes text NULL,
level_number numeric(12) NULL,
left_annot varchar(60) NULL,
right_annot varchar(60) NULL,
factor_hdr_desc_schinese varchar(120) NULL,
......@@ -21,7 +19,8 @@ CREATE TABLE factor_hdr (
factor_hdr_desc_korean varchar(120) NULL,
factor_hdr_desc_thai varchar(120) NULL,
z_score_wght numeric(20,5) NULL,
z_score_wght_2 numeric(20,5) NULL
z_score_wght_2 numeric(20,5) NULL,
level_number numeric(12) NULL
);
......@@ -34,3 +33,5 @@ ALTER TABLE factor_hdr ADD
CREATE INDEX idx_factor_hdr_level_number
ON factor_hdr (level_number);
-- @AutoRun
-- drop table factor_lin;
CREATE TABLE factor_lin (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
reverse_score_flag varchar(15) NULL,
factor_number numeric(12) NULL
);
ALTER TABLE factor_lin ADD
CONSTRAINT pk_factor_lin PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table level_factor;
CREATE TABLE level_factor (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
from_score numeric(12) NULL,
to_score numeric(12) NULL,
narrative_code varchar(15) NULL,
color_code varchar(15) NULL,
factor_number numeric(12) NULL,
level_number numeric(12) NULL
);
ALTER TABLE level_factor ADD
CONSTRAINT pk_level_factor PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table level;
CREATE TABLE level (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
level_number numeric(12) NULL,
level_desc varchar(30) NULL,
level_notes text NULL
);
ALTER TABLE level ADD
CONSTRAINT pk_level PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
......@@ -12,17 +12,7 @@ CREATE TABLE quest_lin (
left_quest_number numeric(12) NULL,
left_quest varchar(80) NULL,
right_quest_number numeric(12) NULL,
right_quest varchar(80) NULL,
left_quest_schinese text NULL,
right_quest_schinese text NULL,
left_quest_chinese text NULL,
right_quest_chinese text NULL,
left_quest_korean text NULL,
right_quest_korean text NULL,
left_quest_thai text NULL,
right_quest_thai text NULL,
left_quest_viet text NULL,
right_quest_viet text NULL
right_quest varchar(80) NULL
);
......
package performa.orm;
public class Answer extends BaseAnswer
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Answer ()
{
// 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="Answer" package="performa.orm">
<TABLE name="answer" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="QuestionNo" type="Integer" dbcol="quest_number"/>
<ATTRIB name="AnswerNo" type="Integer" dbcol="answer_number"/>
<!--<SINGLEREFERENCE name="Section" type="Section" dbcol="section_number" />-->
<SINGLEREFERENCE name="Candidate" type="Candidate" dbcol="candidate_id" />
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
public class Candidate extends BaseCandidate
{
......@@ -23,5 +11,3 @@ public class Candidate extends BaseCandidate
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
......@@ -17,8 +17,6 @@
<ATTRIB name="Gender" type="String" dbcol="gender" length="10"/>
<ATTRIB name="Password" type="String" dbcol="password" length="15"/>
<ATTRIB name="DateTaken" type="Date" dbcol="date_taken"/>
<ATTRIB name="SectionNo" type="Integer" dbcol="section_number"/>
<ATTRIB name="LeftQuestionNo" type="Integer" dbcol="left_quest_number"/>
<ATTRIB name="Location" type="String" dbcol="location" length="80"/>
<ATTRIB name="Phone" type="String" dbcol="contact_phone" length="80"/>
<ATTRIB name="Email" type="String" dbcol="email" length="60"/>
......
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
public class Factor extends BaseFactor
{
......@@ -23,5 +11,3 @@ public class Factor extends BaseFactor
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
......@@ -6,11 +6,9 @@
<TABLE name="factor_hdr" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="FactorNo" type="Integer" dbcol="factor_number"/>
<ATTRIB name="Description" type="String" dbcol="factor_hdr_desc" length="30"/>
<ATTRIB name="ClassCode" type="String" dbcol="class_code" length="15"/>
<ATTRIB name="Notes" type="String" dbcol="factor_hdr_notes"/>
<ATTRIB name="LevelNo" type="Integer" dbcol="level_number"/>
<ATTRIB name="LeftAnnot" type="String" dbcol="left_annot" length="60"/>
<ATTRIB name="RightAnnot" type="String" dbcol="right_annot" length="60"/>
<ATTRIB name="DescriptionSchinese" type="String" dbcol="factor_hdr_desc_schinese" length="120"/>
......@@ -20,6 +18,8 @@
<ATTRIB name="ZScoreWeight" type="Double" dbcol="z_score_wght"/>
<ATTRIB name="ZScoreWeight2" type="Double" dbcol="z_score_wght_2"/>
<SINGLEREFERENCE name="Level" type="Level" dbcol="level_number" backreferenceName="Factors" />
</TABLE>
</BUSINESSCLASS>
......
package performa.orm;
public class FactorQuestionLink extends BaseFactorQuestionLink
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public FactorQuestionLink ()
{
// 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="FactorQuestionLink" package="performa.orm">
<TABLE name="factor_lin" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="ReverseScore" type="String" dbcol="reverse_score_flag" length="15"/>
<SINGLEREFERENCE name="Factor" type="Factor" dbcol="factor_number" />
</TABLE>
</BUSINESSCLASS>
</ROOT>
package performa.orm;
public class FactorScoreResult extends BaseFactorScoreResult
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public FactorScoreResult ()
{
// 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="FactorScoreResult" package="performa.orm">
<TABLE name="level_factor" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="FromScore" type="Integer" dbcol="from_score"/>
<ATTRIB name="ToScore" type="Integer" dbcol="to_score"/>
<ATTRIB name="NarrativeCode" type="String" dbcol="narrative_code" length="15"/>
<ATTRIB name="ColorCode" type="String" dbcol="color_code" length="15"/>
<SINGLEREFERENCE name="Factor" type="Factor" dbcol="factor_number" />
<SINGLEREFERENCE name="Level" type="Level" dbcol="level_number" />
</TABLE>
</BUSINESSCLASS>
</ROOT>
package performa.orm;
public class Level extends BaseLevel
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Level ()
{
// 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="Level" package="performa.orm">
<MULTIPLEREFERENCE name="Factors" type="Factor" backreferenceName="Level" />
<TABLE name="level" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="LevelNo" type="Integer" dbcol="level_number"/>
<ATTRIB name="LevelDescription" type="String" dbcol="level_desc" length="30"/>
<ATTRIB name="LevelNotes" type="String" dbcol="level_notes"/>
</TABLE>
</BUSINESSCLASS>
</ROOT>
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
public class Question extends BaseQuestion
{
......@@ -23,5 +11,3 @@ public class Question extends BaseQuestion
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
......@@ -10,16 +10,8 @@
<ATTRIB name="LeftQuestion" type="String" dbcol="left_quest" length="80"/>
<ATTRIB name="RightQuestionNo" type="Integer" dbcol="right_quest_number"/>
<ATTRIB name="RightQuestion" type="String" dbcol="right_quest" length="80"/>
<ATTRIB name="LeftQuestionSchinese" type="String" dbcol="left_quest_schinese"/>
<ATTRIB name="RightQuestionSchinese" type="String" dbcol="right_quest_schinese"/>
<ATTRIB name="LeftQuestionChinese" type="String" dbcol="left_quest_chinese"/>
<ATTRIB name="RightQuestionChinese" type="String" dbcol="right_quest_chinese"/>
<ATTRIB name="LeftQuestionKorean" type="String" dbcol="left_quest_korean"/>
<ATTRIB name="RightQuestionKorean" type="String" dbcol="right_quest_korean"/>
<ATTRIB name="LeftQuestionThai" type="String" dbcol="left_quest_thai"/>
<ATTRIB name="RightQuestionThai" type="String" dbcol="right_quest_thai"/>
<ATTRIB name="LeftQuestionViet" type="String" dbcol="left_quest_viet"/>
<ATTRIB name="RightQuestionViet" type="String" dbcol="right_quest_viet"/>
<!--<SINGLEREFERENCE name="Section" type="Section" dbcol="section_number" />-->
</TABLE>
......
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