fixes for wrong build. entities always extends BaseEntity, tables must contains version column

This commit is contained in:
Anton Romanov 2019-04-03 10:39:55 +04:00
parent 54bbd2375d
commit 4104aa04cd
2 changed files with 9 additions and 1 deletions

View File

@ -1,9 +1,11 @@
package ru.ulstu.conference.model; package ru.ulstu.conference.model;
import ru.ulstu.core.model.BaseEntity;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
@Entity @Entity
@Table(name = "conference") @Table(name = "conference")
public class Conference { public class Conference extends BaseEntity {
} }

View File

@ -54,4 +54,10 @@
constraintName=" fk_deadlines_conference" referencedTableName="conference" constraintName=" fk_deadlines_conference" referencedTableName="conference"
referencedColumnNames="id"/> referencedColumnNames="id"/>
</changeSet> </changeSet>
<changeSet author="orion" id="20190331_000010-5">
<addColumn tableName="conference">
<column name="version" type="integer"/>
</addColumn>
</changeSet>
</databaseChangeLog> </databaseChangeLog>