[jOOQ/jOOQ#13069] Avoid generating commercial-only code

This commit is contained in:
Lukas Eder 2022-02-16 08:24:41 +01:00
parent a2371ac01d
commit 4e20c95e33
13 changed files with 23 additions and 877 deletions

View File

@ -7,7 +7,6 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -15,20 +14,16 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row4;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.ActorRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmActorRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -128,40 +123,6 @@ public class Actor extends TableImpl<ActorRecord> {
return Keys.ACTOR_PKEY;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_actor</code> one-to-many child
* table.
*/
public Field<Result<FilmActorRecord>> filmActorMultiset() {
return filmActorMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_actor</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> filmActorMultiset(Function<? super FilmActor, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.FILM_ACTOR__FILM_ACTOR_ACTOR_ID_FKEY, t -> subquery.apply((FilmActor) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film</code> many-to-many child table.
*/
public Field<Result<FilmRecord>> filmMultiset() {
return filmMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> filmMultiset(Function<? super Film, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.FILM_ACTOR__FILM_ACTOR_ACTOR_ID_FKEY, Keys.FILM_ACTOR__FILM_ACTOR_FILM_ID_FKEY, t -> subquery.apply((Film) t));
}
@Override
public Actor as(String alias) {
return new Actor(DSL.name(alias), this);

View File

@ -7,7 +7,6 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -15,21 +14,16 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row8;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.AddressRecord;
import org.jooq.example.testcontainers.db.tables.records.CustomerRecord;
import org.jooq.example.testcontainers.db.tables.records.StaffRecord;
import org.jooq.example.testcontainers.db.tables.records.StoreRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -166,54 +160,6 @@ public class Address extends TableImpl<AddressRecord> {
return _city;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.customer</code> one-to-many child table.
*/
public Field<Result<CustomerRecord>> customerMultiset() {
return customerMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.customer</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> customerMultiset(Function<? super Customer, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.CUSTOMER__CUSTOMER_ADDRESS_ID_FKEY, t -> subquery.apply((Customer) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.staff</code> one-to-many child table.
*/
public Field<Result<StaffRecord>> staffMultiset() {
return staffMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.staff</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> staffMultiset(Function<? super Staff, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.STAFF__STAFF_ADDRESS_ID_FKEY, t -> subquery.apply((Staff) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.store</code> one-to-many child table.
*/
public Field<Result<StoreRecord>> storeMultiset() {
return storeMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.store</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> storeMultiset(Function<? super Store, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.STORE__STORE_ADDRESS_ID_FKEY, t -> subquery.apply((Store) t));
}
@Override
public Address as(String alias) {
return new Address(DSL.name(alias), this);

View File

@ -5,26 +5,21 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row3;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.CategoryRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmCategoryRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -114,40 +109,6 @@ public class Category extends TableImpl<CategoryRecord> {
return Keys.CATEGORY_PKEY;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_category</code> one-to-many child
* table.
*/
public Field<Result<FilmCategoryRecord>> filmCategoryMultiset() {
return filmCategoryMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_category</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> filmCategoryMultiset(Function<? super FilmCategory, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.FILM_CATEGORY__FILM_CATEGORY_CATEGORY_ID_FKEY, t -> subquery.apply((FilmCategory) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film</code> many-to-many child table.
*/
public Field<Result<FilmRecord>> filmMultiset() {
return filmMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> filmMultiset(Function<? super Film, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.FILM_CATEGORY__FILM_CATEGORY_CATEGORY_ID_FKEY, Keys.FILM_CATEGORY__FILM_CATEGORY_FILM_ID_FKEY, t -> subquery.apply((Film) t));
}
@Override
public Category as(String alias) {
return new Category(DSL.name(alias), this);

View File

@ -7,7 +7,6 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -15,18 +14,15 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row4;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.AddressRecord;
import org.jooq.example.testcontainers.db.tables.records.CityRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
@ -144,22 +140,6 @@ public class City extends TableImpl<CityRecord> {
return _country;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.address</code> one-to-many child table.
*/
public Field<Result<AddressRecord>> addressMultiset() {
return addressMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.address</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> addressMultiset(Function<? super Address, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.ADDRESS__ADDRESS_CITY_ID_FKEY, t -> subquery.apply((Address) t));
}
@Override
public City as(String alias) {
return new City(DSL.name(alias), this);

View File

@ -5,24 +5,20 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row3;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.CityRecord;
import org.jooq.example.testcontainers.db.tables.records.CountryRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
@ -113,22 +109,6 @@ public class Country extends TableImpl<CountryRecord> {
return Keys.COUNTRY_PKEY;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.city</code> one-to-many child table.
*/
public Field<Result<CityRecord>> cityMultiset() {
return cityMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.city</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> cityMultiset(Function<? super City, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.CITY__CITY_COUNTRY_ID_FKEY, t -> subquery.apply((City) t));
}
@Override
public Country as(String alias) {
return new Country(DSL.name(alias), this);

View File

@ -8,7 +8,6 @@ import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -16,26 +15,16 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row10;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.CustomerRecord;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_01Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_02Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_03Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_04Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_05Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_06Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentRecord;
import org.jooq.example.testcontainers.db.tables.records.RentalRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -193,146 +182,6 @@ public class Customer extends TableImpl<CustomerRecord> {
return _address;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment</code> one-to-many child table.
*/
public Field<Result<PaymentRecord>> paymentMultiset() {
return paymentMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> paymentMultiset(Function<? super Payment, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT__PAYMENT_CUSTOMER_ID_FKEY, t -> subquery.apply((Payment) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_01</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_01Record>> paymentP2007_01Multiset() {
return paymentP2007_01Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_01</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_01Multiset(Function<? super PaymentP2007_01, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_01__PAYMENT_P2007_01_CUSTOMER_ID_FKEY, t -> subquery.apply((PaymentP2007_01) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_02</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_02Record>> paymentP2007_02Multiset() {
return paymentP2007_02Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_02</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_02Multiset(Function<? super PaymentP2007_02, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_CUSTOMER_ID_FKEY, t -> subquery.apply((PaymentP2007_02) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_03</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_03Record>> paymentP2007_03Multiset() {
return paymentP2007_03Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_03</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_03Multiset(Function<? super PaymentP2007_03, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_CUSTOMER_ID_FKEY, t -> subquery.apply((PaymentP2007_03) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_04</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_04Record>> paymentP2007_04Multiset() {
return paymentP2007_04Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_04</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_04Multiset(Function<? super PaymentP2007_04, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_04__PAYMENT_P2007_04_CUSTOMER_ID_FKEY, t -> subquery.apply((PaymentP2007_04) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_05</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_05Record>> paymentP2007_05Multiset() {
return paymentP2007_05Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_05</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_05Multiset(Function<? super PaymentP2007_05, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_05__PAYMENT_P2007_05_CUSTOMER_ID_FKEY, t -> subquery.apply((PaymentP2007_05) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_06</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_06Record>> paymentP2007_06Multiset() {
return paymentP2007_06Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_06</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_06Multiset(Function<? super PaymentP2007_06, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_06__PAYMENT_P2007_06_CUSTOMER_ID_FKEY, t -> subquery.apply((PaymentP2007_06) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.rental</code> one-to-many child table.
*/
public Field<Result<RentalRecord>> rentalMultiset() {
return rentalMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.rental</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> rentalMultiset(Function<? super Rental, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.RENTAL__RENTAL_CUSTOMER_ID_FKEY, t -> subquery.apply((Rental) t));
}
@Override
public Customer as(String alias) {
return new Customer(DSL.name(alias), this);

View File

@ -8,7 +8,6 @@ import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -16,25 +15,17 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row14;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.enums.MpaaRating;
import org.jooq.example.testcontainers.db.tables.records.ActorRecord;
import org.jooq.example.testcontainers.db.tables.records.CategoryRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmActorRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmCategoryRecord;
import org.jooq.example.testcontainers.db.tables.records.FilmRecord;
import org.jooq.example.testcontainers.db.tables.records.InventoryRecord;
import org.jooq.example.testcontainers.db.tables.records.StoreRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -220,106 +211,6 @@ public class Film extends TableImpl<FilmRecord> {
return _filmOriginalLanguageIdFkey;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_actor</code> one-to-many child
* table.
*/
public Field<Result<FilmActorRecord>> filmActorMultiset() {
return filmActorMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_actor</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> filmActorMultiset(Function<? super FilmActor, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.FILM_ACTOR__FILM_ACTOR_FILM_ID_FKEY, t -> subquery.apply((FilmActor) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_category</code> one-to-many child
* table.
*/
public Field<Result<FilmCategoryRecord>> filmCategoryMultiset() {
return filmCategoryMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.film_category</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> filmCategoryMultiset(Function<? super FilmCategory, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.FILM_CATEGORY__FILM_CATEGORY_FILM_ID_FKEY, t -> subquery.apply((FilmCategory) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.inventory</code> one-to-many child table.
*/
public Field<Result<InventoryRecord>> inventoryMultiset() {
return inventoryMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.inventory</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> inventoryMultiset(Function<? super Inventory, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.INVENTORY__INVENTORY_FILM_ID_FKEY, t -> subquery.apply((Inventory) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.actor</code> many-to-many child table.
*/
public Field<Result<ActorRecord>> actorMultiset() {
return actorMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.actor</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> actorMultiset(Function<? super Actor, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.FILM_ACTOR__FILM_ACTOR_FILM_ID_FKEY, Keys.FILM_ACTOR__FILM_ACTOR_ACTOR_ID_FKEY, t -> subquery.apply((Actor) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.category</code> many-to-many child table.
*/
public Field<Result<CategoryRecord>> categoryMultiset() {
return categoryMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.category</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> categoryMultiset(Function<? super Category, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.FILM_CATEGORY__FILM_CATEGORY_FILM_ID_FKEY, Keys.FILM_CATEGORY__FILM_CATEGORY_CATEGORY_ID_FKEY, t -> subquery.apply((Category) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.store</code> many-to-many child table.
*/
public Field<Result<StoreRecord>> storeMultiset() {
return storeMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.store</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> storeMultiset(Function<? super Store, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.INVENTORY__INVENTORY_FILM_ID_FKEY, Keys.INVENTORY__INVENTORY_STORE_ID_FKEY, t -> subquery.apply((Store) t));
}
@Override
public Film as(String alias) {
return new Film(DSL.name(alias), this);

View File

@ -7,7 +7,6 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -15,21 +14,16 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row4;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.CustomerRecord;
import org.jooq.example.testcontainers.db.tables.records.InventoryRecord;
import org.jooq.example.testcontainers.db.tables.records.RentalRecord;
import org.jooq.example.testcontainers.db.tables.records.StaffRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -157,54 +151,6 @@ public class Inventory extends TableImpl<InventoryRecord> {
return _store;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.rental</code> one-to-many child table.
*/
public Field<Result<RentalRecord>> rentalMultiset() {
return rentalMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.rental</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> rentalMultiset(Function<? super Rental, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.RENTAL__RENTAL_INVENTORY_ID_FKEY, t -> subquery.apply((Rental) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.customer</code> many-to-many child table.
*/
public Field<Result<CustomerRecord>> customerMultiset() {
return customerMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.customer</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> customerMultiset(Function<? super Customer, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.RENTAL__RENTAL_INVENTORY_ID_FKEY, Keys.RENTAL__RENTAL_CUSTOMER_ID_FKEY, t -> subquery.apply((Customer) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.staff</code> many-to-many child table.
*/
public Field<Result<StaffRecord>> staffMultiset() {
return staffMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.staff</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> staffMultiset(Function<? super Staff, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.RENTAL__RENTAL_INVENTORY_ID_FKEY, Keys.RENTAL__RENTAL_STAFF_ID_FKEY, t -> subquery.apply((Staff) t));
}
@Override
public Inventory as(String alias) {
return new Inventory(DSL.name(alias), this);

View File

@ -5,19 +5,16 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row3;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Keys;
@ -112,38 +109,6 @@ public class Language extends TableImpl<LanguageRecord> {
return Keys.LANGUAGE_PKEY;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.language</code> many-to-many child table.
*/
public Field<Result<LanguageRecord>> filmOriginalLanguageIdFkeyMultiset() {
return filmOriginalLanguageIdFkeyMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.language</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> filmOriginalLanguageIdFkeyMultiset(Function<? super Language, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.FILM__FILM_LANGUAGE_ID_FKEY, Keys.FILM__FILM_ORIGINAL_LANGUAGE_ID_FKEY, t -> subquery.apply((Language) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.language</code> many-to-many child table.
*/
public Field<Result<LanguageRecord>> filmLanguageIdFkeyMultiset() {
return filmLanguageIdFkeyMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.language</code> many-to-many child table.
*/
public <O extends Record> Field<Result<O>> filmLanguageIdFkeyMultiset(Function<? super Language, ? extends TableLike<O>> subquery) {
return manyToManyMultiset(Keys.FILM__FILM_ORIGINAL_LANGUAGE_ID_FKEY, Keys.FILM__FILM_LANGUAGE_ID_FKEY, t -> subquery.apply((Language) t));
}
@Override
public Language as(String alias) {
return new Language(DSL.name(alias), this);

View File

@ -7,7 +7,6 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -15,24 +14,15 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row7;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_01Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_02Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_03Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_04Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_05Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_06Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentRecord;
import org.jooq.example.testcontainers.db.tables.records.RentalRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
@ -187,130 +177,6 @@ public class Rental extends TableImpl<RentalRecord> {
return _staff;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment</code> one-to-many child table.
*/
public Field<Result<PaymentRecord>> paymentMultiset() {
return paymentMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> paymentMultiset(Function<? super Payment, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT__PAYMENT_RENTAL_ID_FKEY, t -> subquery.apply((Payment) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_01</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_01Record>> paymentP2007_01Multiset() {
return paymentP2007_01Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_01</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_01Multiset(Function<? super PaymentP2007_01, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_01__PAYMENT_P2007_01_RENTAL_ID_FKEY, t -> subquery.apply((PaymentP2007_01) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_02</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_02Record>> paymentP2007_02Multiset() {
return paymentP2007_02Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_02</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_02Multiset(Function<? super PaymentP2007_02, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_RENTAL_ID_FKEY, t -> subquery.apply((PaymentP2007_02) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_03</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_03Record>> paymentP2007_03Multiset() {
return paymentP2007_03Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_03</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_03Multiset(Function<? super PaymentP2007_03, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_RENTAL_ID_FKEY, t -> subquery.apply((PaymentP2007_03) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_04</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_04Record>> paymentP2007_04Multiset() {
return paymentP2007_04Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_04</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_04Multiset(Function<? super PaymentP2007_04, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_04__PAYMENT_P2007_04_RENTAL_ID_FKEY, t -> subquery.apply((PaymentP2007_04) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_05</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_05Record>> paymentP2007_05Multiset() {
return paymentP2007_05Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_05</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_05Multiset(Function<? super PaymentP2007_05, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_05__PAYMENT_P2007_05_RENTAL_ID_FKEY, t -> subquery.apply((PaymentP2007_05) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_06</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_06Record>> paymentP2007_06Multiset() {
return paymentP2007_06Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_06</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_06Multiset(Function<? super PaymentP2007_06, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_06__PAYMENT_P2007_06_RENTAL_ID_FKEY, t -> subquery.apply((PaymentP2007_06) t));
}
@Override
public Rental as(String alias) {
return new Rental(DSL.name(alias), this);

View File

@ -7,33 +7,21 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row11;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_01Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_02Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_03Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_04Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_05Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentP2007_06Record;
import org.jooq.example.testcontainers.db.tables.records.PaymentRecord;
import org.jooq.example.testcontainers.db.tables.records.RentalRecord;
import org.jooq.example.testcontainers.db.tables.records.StaffRecord;
import org.jooq.example.testcontainers.db.tables.records.StoreRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
@ -191,162 +179,6 @@ public class Staff extends TableImpl<StaffRecord> {
return _store;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment</code> one-to-many child table.
*/
public Field<Result<PaymentRecord>> paymentMultiset() {
return paymentMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> paymentMultiset(Function<? super Payment, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT__PAYMENT_STAFF_ID_FKEY, t -> subquery.apply((Payment) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_01</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_01Record>> paymentP2007_01Multiset() {
return paymentP2007_01Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_01</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_01Multiset(Function<? super PaymentP2007_01, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_01__PAYMENT_P2007_01_STAFF_ID_FKEY, t -> subquery.apply((PaymentP2007_01) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_02</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_02Record>> paymentP2007_02Multiset() {
return paymentP2007_02Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_02</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_02Multiset(Function<? super PaymentP2007_02, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_02__PAYMENT_P2007_02_STAFF_ID_FKEY, t -> subquery.apply((PaymentP2007_02) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_03</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_03Record>> paymentP2007_03Multiset() {
return paymentP2007_03Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_03</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_03Multiset(Function<? super PaymentP2007_03, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_STAFF_ID_FKEY, t -> subquery.apply((PaymentP2007_03) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_04</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_04Record>> paymentP2007_04Multiset() {
return paymentP2007_04Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_04</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_04Multiset(Function<? super PaymentP2007_04, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_04__PAYMENT_P2007_04_STAFF_ID_FKEY, t -> subquery.apply((PaymentP2007_04) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_05</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_05Record>> paymentP2007_05Multiset() {
return paymentP2007_05Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_05</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_05Multiset(Function<? super PaymentP2007_05, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_05__PAYMENT_P2007_05_STAFF_ID_FKEY, t -> subquery.apply((PaymentP2007_05) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_06</code> one-to-many child
* table.
*/
public Field<Result<PaymentP2007_06Record>> paymentP2007_06Multiset() {
return paymentP2007_06Multiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.payment_p2007_06</code> one-to-many child
* table.
*/
public <O extends Record> Field<Result<O>> paymentP2007_06Multiset(Function<? super PaymentP2007_06, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.PAYMENT_P2007_06__PAYMENT_P2007_06_STAFF_ID_FKEY, t -> subquery.apply((PaymentP2007_06) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.rental</code> one-to-many child table.
*/
public Field<Result<RentalRecord>> rentalMultiset() {
return rentalMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.rental</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> rentalMultiset(Function<? super Rental, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.RENTAL__RENTAL_STAFF_ID_FKEY, t -> subquery.apply((Rental) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.store</code> one-to-many child table.
*/
public Field<Result<StoreRecord>> storeMultiset() {
return storeMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.store</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> storeMultiset(Function<? super Store, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.STORE__STORE_MANAGER_STAFF_ID_FKEY, t -> subquery.apply((Store) t));
}
@Override
public Staff as(String alias) {
return new Staff(DSL.name(alias), this);

View File

@ -7,7 +7,6 @@ package org.jooq.example.testcontainers.db.tables;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
@ -15,20 +14,15 @@ import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Result;
import org.jooq.Row4;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableLike;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.example.testcontainers.db.Indexes;
import org.jooq.example.testcontainers.db.Keys;
import org.jooq.example.testcontainers.db.Public;
import org.jooq.example.testcontainers.db.tables.records.CustomerRecord;
import org.jooq.example.testcontainers.db.tables.records.InventoryRecord;
import org.jooq.example.testcontainers.db.tables.records.StaffRecord;
import org.jooq.example.testcontainers.db.tables.records.StoreRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
@ -157,54 +151,6 @@ public class Store extends TableImpl<StoreRecord> {
return _address;
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.customer</code> one-to-many child table.
*/
public Field<Result<CustomerRecord>> customerMultiset() {
return customerMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.customer</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> customerMultiset(Function<? super Customer, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.CUSTOMER__CUSTOMER_STORE_ID_FKEY, t -> subquery.apply((Customer) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.inventory</code> one-to-many child table.
*/
public Field<Result<InventoryRecord>> inventoryMultiset() {
return inventoryMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.inventory</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> inventoryMultiset(Function<? super Inventory, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.INVENTORY__INVENTORY_STORE_ID_FKEY, t -> subquery.apply((Inventory) t));
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.staff</code> one-to-many child table.
*/
public Field<Result<StaffRecord>> staffMultiset() {
return staffMultiset(Function.identity());
}
/**
* A convenience constructor for correlated <code>MULTISET</code>s
* expressions to the <code>public.staff</code> one-to-many child table.
*/
public <O extends Record> Field<Result<O>> staffMultiset(Function<? super Staff, ? extends TableLike<O>> subquery) {
return oneToManyMultiset(Keys.STAFF__STAFF_STORE_ID_FKEY, t -> subquery.apply((Staff) t));
}
@Override
public Store as(String alias) {
return new Store(DSL.name(alias), this);

View File

@ -71,6 +71,29 @@
</configuration>
</plugin>
</plugins>
</build>
<modules>