[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5371) Add support for REVEND_TSTMP which will enable SQL table partitioning by time
Erik-Berndt Scheper (JIRA)
noreply at atlassian.com
Thu Aug 19 08:20:43 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38139#action_38139 ]
Erik-Berndt Scheper commented on HHH-5371:
------------------------------------------
The patch provided breaks the envers tests of the current trunk.
This happens in org.hibernate.envers.test.integration.manytomany.sametable.BasicSametable.java
where the column 'REVEND_TSTMP' is missing in Table 'children_AUD'
Fix:
Line 69/70 should be changed to:
{code:title=BasicSametable.java|borderStyle=solid}
session.createSQLQuery("CREATE TABLE children_AUD(REV integer NOT NULL, REVEND integer, REVEND_TSTMP bigint, REVTYPE tinyint, " +
"parent_id integer, child1_id integer NULL, child2_id integer NULL)").executeUpdate();
{code}
> Add support for REVEND_TSTMP which will enable SQL table partitioning by time
> -----------------------------------------------------------------------------
>
> Key: HHH-5371
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5371
> Project: Hibernate Core
> Issue Type: New Feature
> Components: envers
> Affects Versions: 3.6.0.Beta1
> Reporter: Matthew B. Jones
> Assignee: Adam Warski
> Attachments: revend_tstmp.txt
>
>
> There is strong desire to be able to purge old records out of a relational database by using table partitioning. In order to partition a table, you need to partition it on a column that exists within the table. So, in order to partition the _AUD tables by expired time, the timestamp of REVEND must be present within the table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list