-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58dcedd
commit 514f88a
Showing
5 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
backend/src/main/java/ai/dragon/entity/schemaless/SLKeyEntity.java
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,47 @@ | ||
package ai.dragon.entity.schemaless; | ||
|
||
import java.util.Date; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Index; | ||
import jakarta.persistence.Table; | ||
|
||
@Entity | ||
@Table(name = "slkey", indexes = { | ||
@Index(columnList = "keyid", unique = true) | ||
}) | ||
public class SLKeyEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long rowid; | ||
private String keyid; | ||
private Date updatedAt; | ||
|
||
public Long getRowid() { | ||
return rowid; | ||
} | ||
|
||
public void setRowid(Long rowid) { | ||
this.rowid = rowid; | ||
} | ||
|
||
public String getKeyid() { | ||
return keyid; | ||
} | ||
|
||
public void setKeyid(String keyid) { | ||
this.keyid = keyid; | ||
} | ||
|
||
public Date getUpdatedAt() { | ||
return updatedAt; | ||
} | ||
|
||
public void setUpdatedAt(Date updatedAt) { | ||
this.updatedAt = updatedAt; | ||
} | ||
|
||
} |
55 changes: 55 additions & 0 deletions
55
backend/src/main/java/ai/dragon/entity/schemaless/SLValueEntity.java
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,55 @@ | ||
package ai.dragon.entity.schemaless; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Index; | ||
import jakarta.persistence.Table; | ||
|
||
@Entity | ||
@Table(name = "slvalue", indexes = { | ||
@Index(columnList = "keyid"), | ||
@Index(columnList = "rowattribute") | ||
}) | ||
public class SLValueEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long rowid; | ||
private String keyid; | ||
private String rowattribute; | ||
private String rowvalue; | ||
|
||
public Long getRowid() { | ||
return rowid; | ||
} | ||
|
||
public void setRowid(Long rowid) { | ||
this.rowid = rowid; | ||
} | ||
|
||
public String getKeyid() { | ||
return keyid; | ||
} | ||
|
||
public void setKeyid(String keyid) { | ||
this.keyid = keyid; | ||
} | ||
|
||
public String getRowattribute() { | ||
return rowattribute; | ||
} | ||
|
||
public void setRowattribute(String rowattribute) { | ||
this.rowattribute = rowattribute; | ||
} | ||
|
||
public String getRowvalue() { | ||
return rowvalue; | ||
} | ||
|
||
public void setRowvalue(String rowvalue) { | ||
this.rowvalue = rowvalue; | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
backend/src/main/java/ai/dragon/repository/schemaless/SLKeyEntityRepository.java
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,11 @@ | ||
package ai.dragon.repository.schemaless; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import ai.dragon.entity.schemaless.SLKeyEntity; | ||
|
||
@Repository | ||
public interface SLKeyEntityRepository extends JpaRepository<SLKeyEntity, Integer> { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
backend/src/main/java/ai/dragon/repository/schemaless/SLValueRepository.java
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,11 @@ | ||
package ai.dragon.repository.schemaless; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import ai.dragon.entity.schemaless.SLValueEntity; | ||
|
||
@Repository | ||
public interface SLValueRepository extends JpaRepository<SLValueEntity, Integer> { | ||
|
||
} |
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