Skip to content

Commit

Permalink
LSNBLDR-924 Multiple tables sharing oracle sequence. (sakaiproject#5229)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono authored and ern committed Jan 26, 2018
1 parent 0df694e commit 9970a81
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<!-- create the primary key id, using native is typically the best way -->

<id name="pageId" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_PAGE_S</param>
</generator>
</id>

<property name="toolId" type="string" length="99" not-null="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<!-- create the primary key id, using native is typically the best way -->

<id name="id" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_COMMENTS_S</param>
</generator>
</id>

<property name="itemId" type="long" not-null="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<!-- create the primary key id, using native is typically the best way -->

<id name="id" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_GROUPS_S</param>
</generator>
</id>

<property name="itemId" type="string" not-null="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<!-- create the primary key id, using native is typically the best way -->

<id name="id" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_ITEMS_S</param>
</generator>
</id>

<property name="pageId" type="long" not-null="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<class name="org.sakaiproject.lessonbuildertool.SimplePageLogEntryImpl" table="lesson_builder_log">

<id name="id" type="long">
<generator class="native" />
<generator class="native">
<param name="sequence">LESSON_BUILDER_LOG_S</param>
</generator>
</id>

<timestamp name="lastViewed" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<cache usage="nonstrict-read-write" />

<id name="id" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_PROP_S</param>
</generator>
</id>

<property name="attribute" type="string" length="255" not-null="true" unique="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<class name="org.sakaiproject.lessonbuildertool.SimplePageQuestionResponseImpl" table="lesson_builder_q_responses">

<id name="id" type="long">
<generator class="native" />
<generator class="native">
<param name="sequence">LESSON_BUILDER_QRES_S</param>
</generator>
</id>

<timestamp name="timeAnswered" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<!-- create the primary key id, using native is typically the best way -->

<id name="id" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_QR_S</param>
</generator>
</id>

<property name="questionId" type="long" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<!-- create the primary key id, using native is typically the best way -->

<id name="id" type="long">
<generator class="native"/>
<generator class="native">
<param name="sequence">LESSON_BUILDER_STPAGE_S</param>
</generator>
</id>

<timestamp name="lastUpdated" />
Expand Down

0 comments on commit 9970a81

Please sign in to comment.