Skip to content

Commit bb3aab4

Browse files
Pull requests and api refactoring - version 2.9.0
1 parent 1b06c93 commit bb3aab4

File tree

29 files changed

+1437
-1284
lines changed

29 files changed

+1437
-1284
lines changed

.DS_Store

0 Bytes
Binary file not shown.

sm-core-model/src/main/java/com/salesmanager/core/model/content/Content.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import javax.persistence.GeneratedValue;
1616
import javax.persistence.GenerationType;
1717
import javax.persistence.Id;
18+
import javax.persistence.Index;
1819
import javax.persistence.JoinColumn;
1920
import javax.persistence.ManyToOne;
2021
import javax.persistence.OneToMany;
@@ -34,8 +35,9 @@
3435

3536
@Entity
3637
@EntityListeners(value = AuditListener.class)
37-
@Table(name = "CONTENT", schema= SchemaConstant.SALESMANAGER_SCHEMA,uniqueConstraints=
38-
@UniqueConstraint(columnNames = {"MERCHANT_ID", "CODE"}) )
38+
@Table(name = "CONTENT", schema= SchemaConstant.SALESMANAGER_SCHEMA,
39+
indexes = { @Index(name="CODE_IDX", columnList = "CODE")},
40+
uniqueConstraints = @UniqueConstraint(columnNames = {"MERCHANT_ID", "CODE"}) )
3941
public class Content extends SalesManagerEntity<Long, Content> implements Serializable {
4042

4143

0 commit comments

Comments
 (0)