Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/babyfish-ct/jimmer into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Nov 2, 2024
2 parents b66c6e0 + 4162b1a commit 655fcb1
Show file tree
Hide file tree
Showing 6 changed files with 1,139 additions and 1,106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.babyfish.jimmer.sql.Id;
import org.babyfish.jimmer.sql.OneToMany;

import java.time.LocalTime;
import java.util.List;

/**
Expand All @@ -26,6 +27,10 @@ public interface BookStore {
@OneToMany(mappedBy = "store")
List<Book> books();

LocalTime openTime();

LocalTime closeTime();

enum Level {
LOW,
MIDDLE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,10 @@ public void testBookService() {
" type: array\n" +
" items:\n" +
" $ref: '#/components/schemas/Dynamic_Book'\n" +
" openTime:\n" +
" type: string\n" +
" closeTime:\n" +
" type: string\n" +
" Dynamic_Author:\n" +
" type: object\n" +
" properties:\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonValue
import org.babyfish.jimmer.sql.Entity
import org.babyfish.jimmer.sql.Id
import org.babyfish.jimmer.sql.OneToMany
import java.time.LocalTime

@Entity
interface KBookStore {
Expand All @@ -22,6 +23,10 @@ interface KBookStore {
*/
@OneToMany(mappedBy = "store")
val books: List<KBook>

val openTime: LocalTime

val closeTime: LocalTime
}

enum class KLevel {
Expand Down
Loading

0 comments on commit 655fcb1

Please sign in to comment.