Re-generated example code
This commit is contained in:
parent
8268f2745e
commit
49f646a33c
@ -283,11 +283,11 @@ public class AuthorRecord extends UpdatableRecordImpl<AuthorRecord> implements R
|
||||
public AuthorRecord(Integer id, String firstName, String lastName, LocalDate dateOfBirth, Integer yearOfBirth, String address) {
|
||||
super(Author.AUTHOR);
|
||||
|
||||
set(0, id);
|
||||
set(1, firstName);
|
||||
set(2, lastName);
|
||||
set(3, dateOfBirth);
|
||||
set(4, yearOfBirth);
|
||||
set(5, address);
|
||||
setId(id);
|
||||
setFirstName(firstName);
|
||||
setLastName(lastName);
|
||||
setDateOfBirth(dateOfBirth);
|
||||
setYearOfBirth(yearOfBirth);
|
||||
setAddress(address);
|
||||
}
|
||||
}
|
||||
|
||||
@ -173,8 +173,8 @@ public class BookRecord extends UpdatableRecordImpl<BookRecord> implements Recor
|
||||
public BookRecord(Integer id, Integer authorId, String title) {
|
||||
super(Book.BOOK);
|
||||
|
||||
set(0, id);
|
||||
set(1, authorId);
|
||||
set(2, title);
|
||||
setId(id);
|
||||
setAuthorId(authorId);
|
||||
setTitle(title);
|
||||
}
|
||||
}
|
||||
|
||||
@ -76,32 +76,32 @@ class AuthorRecord() : UpdatableRecordImpl<AuthorRecord>(Author.AUTHOR), Record6
|
||||
override fun value6(): String? = address
|
||||
|
||||
override fun value1(value: Int?): AuthorRecord {
|
||||
id = value
|
||||
this.id = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value2(value: String?): AuthorRecord {
|
||||
firstName = value
|
||||
this.firstName = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value3(value: String?): AuthorRecord {
|
||||
lastName = value
|
||||
this.lastName = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value4(value: LocalDate?): AuthorRecord {
|
||||
dateOfBirth = value
|
||||
this.dateOfBirth = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value5(value: Int?): AuthorRecord {
|
||||
yearOfBirth = value
|
||||
this.yearOfBirth = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value6(value: String?): AuthorRecord {
|
||||
address = value
|
||||
this.address = value
|
||||
return this
|
||||
}
|
||||
|
||||
@ -119,11 +119,11 @@ class AuthorRecord() : UpdatableRecordImpl<AuthorRecord>(Author.AUTHOR), Record6
|
||||
* Create a detached, initialised AuthorRecord
|
||||
*/
|
||||
constructor(id: Int? = null, firstName: String? = null, lastName: String? = null, dateOfBirth: LocalDate? = null, yearOfBirth: Int? = null, address: String? = null): this() {
|
||||
set(0, id)
|
||||
set(1, firstName)
|
||||
set(2, lastName)
|
||||
set(3, dateOfBirth)
|
||||
set(4, yearOfBirth)
|
||||
set(5, address)
|
||||
this.id = id
|
||||
this.firstName = firstName
|
||||
this.lastName = lastName
|
||||
this.dateOfBirth = dateOfBirth
|
||||
this.yearOfBirth = yearOfBirth
|
||||
this.address = address
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,57 +111,57 @@ class BookRecord() : UpdatableRecordImpl<BookRecord>(Book.BOOK), Record11<Int?,
|
||||
override fun value11(): LocalDateTime? = recTimestamp
|
||||
|
||||
override fun value1(value: Int?): BookRecord {
|
||||
id = value
|
||||
this.id = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value2(value: Int?): BookRecord {
|
||||
authorId = value
|
||||
this.authorId = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value3(value: Int?): BookRecord {
|
||||
coAuthorId = value
|
||||
this.coAuthorId = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value4(value: Int?): BookRecord {
|
||||
detailsId = value
|
||||
this.detailsId = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value5(value: String?): BookRecord {
|
||||
title = value
|
||||
this.title = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value6(value: Int?): BookRecord {
|
||||
publishedIn = value
|
||||
this.publishedIn = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value7(value: Int?): BookRecord {
|
||||
languageId = value
|
||||
this.languageId = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value8(value: String?): BookRecord {
|
||||
contentText = value
|
||||
this.contentText = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value9(value: ByteArray?): BookRecord {
|
||||
contentPdf = value
|
||||
this.contentPdf = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value10(value: Int?): BookRecord {
|
||||
recVersion = value
|
||||
this.recVersion = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value11(value: LocalDateTime?): BookRecord {
|
||||
recTimestamp = value
|
||||
this.recTimestamp = value
|
||||
return this
|
||||
}
|
||||
|
||||
@ -184,16 +184,16 @@ class BookRecord() : UpdatableRecordImpl<BookRecord>(Book.BOOK), Record11<Int?,
|
||||
* Create a detached, initialised BookRecord
|
||||
*/
|
||||
constructor(id: Int? = null, authorId: Int? = null, coAuthorId: Int? = null, detailsId: Int? = null, title: String? = null, publishedIn: Int? = null, languageId: Int? = null, contentText: String? = null, contentPdf: ByteArray? = null, recVersion: Int? = null, recTimestamp: LocalDateTime? = null): this() {
|
||||
set(0, id)
|
||||
set(1, authorId)
|
||||
set(2, coAuthorId)
|
||||
set(3, detailsId)
|
||||
set(4, title)
|
||||
set(5, publishedIn)
|
||||
set(6, languageId)
|
||||
set(7, contentText)
|
||||
set(8, contentPdf)
|
||||
set(9, recVersion)
|
||||
set(10, recTimestamp)
|
||||
this.id = id
|
||||
this.authorId = authorId
|
||||
this.coAuthorId = coAuthorId
|
||||
this.detailsId = detailsId
|
||||
this.title = title
|
||||
this.publishedIn = publishedIn
|
||||
this.languageId = languageId
|
||||
this.contentText = contentText
|
||||
this.contentPdf = contentPdf
|
||||
this.recVersion = recVersion
|
||||
this.recTimestamp = recTimestamp
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ class BookStoreRecord() : UpdatableRecordImpl<BookStoreRecord>(BookStore.BOOK_ST
|
||||
override fun value1(): String? = name
|
||||
|
||||
override fun value1(value: String?): BookStoreRecord {
|
||||
name = value
|
||||
this.name = value
|
||||
return this
|
||||
}
|
||||
|
||||
@ -51,6 +51,6 @@ class BookStoreRecord() : UpdatableRecordImpl<BookStoreRecord>(BookStore.BOOK_ST
|
||||
* Create a detached, initialised BookStoreRecord
|
||||
*/
|
||||
constructor(name: String? = null): this() {
|
||||
set(0, name)
|
||||
this.name = name
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,17 +53,17 @@ class BookToBookStoreRecord() : UpdatableRecordImpl<BookToBookStoreRecord>(BookT
|
||||
override fun value3(): Int? = stock
|
||||
|
||||
override fun value1(value: String?): BookToBookStoreRecord {
|
||||
bookStoreName = value
|
||||
this.bookStoreName = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value2(value: Int?): BookToBookStoreRecord {
|
||||
bookId = value
|
||||
this.bookId = value
|
||||
return this
|
||||
}
|
||||
|
||||
override fun value3(value: Int?): BookToBookStoreRecord {
|
||||
stock = value
|
||||
this.stock = value
|
||||
return this
|
||||
}
|
||||
|
||||
@ -78,8 +78,8 @@ class BookToBookStoreRecord() : UpdatableRecordImpl<BookToBookStoreRecord>(BookT
|
||||
* Create a detached, initialised BookToBookStoreRecord
|
||||
*/
|
||||
constructor(bookStoreName: String? = null, bookId: Int? = null, stock: Int? = null): this() {
|
||||
set(0, bookStoreName)
|
||||
set(1, bookId)
|
||||
set(2, stock)
|
||||
this.bookStoreName = bookStoreName
|
||||
this.bookId = bookId
|
||||
this.stock = stock
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user