forked from liquibase/liquibase-hibernate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Issue liquibase#27: Hibernate4: Envers tables not generated
- Loading branch information
Michał Dettlaff
committed
Jun 21, 2014
1 parent
4c764be
commit defa89f
Showing
5 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.example.ejb3.auction; | ||
|
||
import javax.persistence.*; | ||
|
||
import org.hibernate.envers.Audited; | ||
|
||
@Audited | ||
@Entity | ||
public class AuditedItem { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator="AUDITED_ITEM_SEQ") | ||
@SequenceGenerator(name="AUDITED_ITEM_SEQ",sequenceName="AUDITED_ITEM_SEQ") | ||
private long id; | ||
@Column(unique = true) | ||
private String name; | ||
|
||
public long getId() { | ||
return id; | ||
} | ||
public void setId(long id) { | ||
this.id = id; | ||
} | ||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters