Fix package tangle in jOOQ sample
Use a custom GeneratorStrategy to fix the package tangles that jOOQ creates by default. Fixes gh-6372
This commit is contained in:
@@ -3,51 +3,92 @@
|
||||
*/
|
||||
package sample.jooq.domain;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.impl.SchemaImpl;
|
||||
import sample.jooq.domain.tables.Author;
|
||||
import sample.jooq.domain.tables.Book;
|
||||
import sample.jooq.domain.tables.BookStore;
|
||||
import sample.jooq.domain.tables.BookToBookStore;
|
||||
import sample.jooq.domain.tables.Language;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@Generated(value = { "http://www.jooq.org",
|
||||
"jOOQ version:3.6.2" }, comments = "This class is generated by jOOQ")
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.8.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Public extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1051839433;
|
||||
private static final long serialVersionUID = 217498103;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>PUBLIC</code>
|
||||
*/
|
||||
public static final Public PUBLIC = new Public();
|
||||
/**
|
||||
* The reference instance of <code>PUBLIC</code>
|
||||
*/
|
||||
public static final Public PUBLIC = new Public();
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Public() {
|
||||
super("PUBLIC");
|
||||
}
|
||||
/**
|
||||
* The table <code>PUBLIC.LANGUAGE</code>.
|
||||
*/
|
||||
public final Language LANGUAGE = sample.jooq.domain.Language.LANGUAGE;
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
List result = new ArrayList();
|
||||
result.addAll(getTables0());
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* The table <code>PUBLIC.AUTHOR</code>.
|
||||
*/
|
||||
public final Author AUTHOR = sample.jooq.domain.Author.AUTHOR;
|
||||
|
||||
private final List<Table<?>> getTables0() {
|
||||
return Arrays.<Table<?>>asList(Language.LANGUAGE, Author.AUTHOR, Book.BOOK,
|
||||
BookStore.BOOK_STORE, BookToBookStore.BOOK_TO_BOOK_STORE);
|
||||
}
|
||||
/**
|
||||
* The table <code>PUBLIC.BOOK</code>.
|
||||
*/
|
||||
public final Book BOOK = sample.jooq.domain.Book.BOOK;
|
||||
|
||||
/**
|
||||
* The table <code>PUBLIC.BOOK_STORE</code>.
|
||||
*/
|
||||
public final BookStore BOOK_STORE = sample.jooq.domain.BookStore.BOOK_STORE;
|
||||
|
||||
/**
|
||||
* The table <code>PUBLIC.BOOK_TO_BOOK_STORE</code>.
|
||||
*/
|
||||
public final BookToBookStore BOOK_TO_BOOK_STORE = sample.jooq.domain.BookToBookStore.BOOK_TO_BOOK_STORE;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Public() {
|
||||
super("PUBLIC", null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return DefaultCatalog.DEFAULT_CATALOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
List result = new ArrayList();
|
||||
result.addAll(getTables0());
|
||||
return result;
|
||||
}
|
||||
|
||||
private final List<Table<?>> getTables0() {
|
||||
return Arrays.<Table<?>>asList(
|
||||
Language.LANGUAGE,
|
||||
Author.AUTHOR,
|
||||
Book.BOOK,
|
||||
BookStore.BOOK_STORE,
|
||||
BookToBookStore.BOOK_TO_BOOK_STORE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user