Skip to content

Commit dd5ba3a

Browse files
committed
feat(data): 자체 ORM 관련 구조 및 어노테이션 선언
1 parent fec4c68 commit dd5ba3a

10 files changed

Lines changed: 47 additions & 0 deletions

File tree

src/main/java/sprout/data/orm/action/internal/InsertAction.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package sprout.data.orm.action.internal;
22

33
import sprout.data.orm.action.Executable;
4+
import sprout.data.orm.engine.ComparableExecutable;
45
import sprout.data.orm.engine.Parameter;
56

67
import java.sql.Connection;
@@ -24,6 +25,11 @@ public List<Parameter<?>> getParameters() {
2425
return parameters;
2526
}
2627

28+
@Override
29+
public Type getActionType() {
30+
return null;
31+
}
32+
2733
@Override
2834
void execute(Connection connection) throws SQLException {
2935

@@ -44,6 +50,11 @@ public String getSecondarySort() {
4450
return "";
4551
}
4652

53+
@Override
54+
public List<ComparableExecutable> getDependencies() {
55+
return List.of();
56+
}
57+
4758
@Override
4859
public int compareTo(Executable o) {
4960
return 0;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface Column {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface Entity {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface Id {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface Index {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface JoinColumn {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface ManyToOne {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface OneToMany {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface OneToOne {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sprout.data.orm.spi.annotation;
2+
3+
public @interface Table {
4+
}

0 commit comments

Comments
 (0)