hibernate envers issue with saving records
------------------------------------------
Key: HHH-3932
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3932
Project: Hibernate Core
Issue Type: Bug
Environment: hibernate 3.3.1ga, envers 1.2.0ga, sql server database
Reporter: praveen s
i am having an abstract calss defined as below
@Entity
@Inheritance
@DiscriminatorColumn(
name = "maintenanceType",
discriminatorType = DiscriminatorType.STRING,
length = 1
)
@DiscriminatorValue("U")
@Table(name = "CurrentMaintenance")
@Audited
@AuditTable (value = "CurrentMaintenance_AUD")
public abstract class BaseCurrentMaintenance
extends VWBaseObject
implements IMaintenance {}
and superclass as
@Entity
@DiscriminatorValue("S")
@Audited
@AuditTable (value = "CurrentMaintenance_AUD")
public class CurrentScheduledMaintenance extends BaseCurrentMaintenance {}
when i am trying to insert new record, two records are getting inserted in
"CurrentMaintenance" table and no records in "CurrentMaintenance_AUD"
please advise if i am doing anything wrong
[ Show ยป ] pravs seep - 28/May/09 07:22 AM i am having similar issue i am having an
abstract calss defined as below @Entity @Inheritance @DiscriminatorColumn( name =
"maintenanceType", discriminatorType = DiscriminatorType.STRING, length
= 1 ) @DiscriminatorValue("U") @Table(name = "CurrentMaintenance")
@Audited @AuditTable (value = "CurrentMaintenance_AUD") public abstract class
BaseCurrentMaintenance extends VWBaseObject implements IMaintenance {} and
superclass as @Entity @DiscriminatorValue("S") @Audited @AuditTable (value =
"CurrentMaintenance_AUD") public class CurrentScheduledMaintenance extends
BaseCurrentMaintenance {} when i am trying to insert new record, two records are getting
inserted in "CurrentMaintenance" table and no records in
"CurrentMaintenance_AUD" please advise if i am doing anything wrong
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira