diff --git a/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/AuthorRecord.java b/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/AuthorRecord.java index ddd8d54c2e..3b9dd62c36 100644 --- a/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/AuthorRecord.java +++ b/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/AuthorRecord.java @@ -283,11 +283,11 @@ public class AuthorRecord extends UpdatableRecordImpl 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); } } diff --git a/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/BookRecord.java b/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/BookRecord.java index 8503038a6e..abbbd85bb5 100644 --- a/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/BookRecord.java +++ b/jOOQ-examples/jOOQ-flyway-ddl-example/src/main/java/org/jooq/example/flyway/ddl/db/h2/tables/records/BookRecord.java @@ -173,8 +173,8 @@ public class BookRecord extends UpdatableRecordImpl 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); } } diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/AuthorRecord.kt b/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/AuthorRecord.kt index 48063046c3..f31a3585ce 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/AuthorRecord.kt +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/AuthorRecord.kt @@ -76,32 +76,32 @@ class AuthorRecord() : UpdatableRecordImpl(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(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 } } diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookRecord.kt b/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookRecord.kt index ed62728b88..3f05af4140 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookRecord.kt +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookRecord.kt @@ -111,57 +111,57 @@ class BookRecord() : UpdatableRecordImpl(Book.BOOK), Record11(Book.BOOK), Record11(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(BookStore.BOOK_ST * Create a detached, initialised BookStoreRecord */ constructor(name: String? = null): this() { - set(0, name) + this.name = name } } diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookToBookStoreRecord.kt b/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookToBookStoreRecord.kt index 57713d0aa5..9c6f90b034 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookToBookStoreRecord.kt +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/kotlin/org/jooq/example/kotlin/db/h2/tables/records/BookToBookStoreRecord.kt @@ -53,17 +53,17 @@ class BookToBookStoreRecord() : UpdatableRecordImpl(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(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 } }