Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate Sclasses #239

Merged
merged 2 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
condition: service_healthy

mysql:
image: mysql:8
image: mysql:5.6.38
ports:
- "3306:3306"
volumes:
Expand All @@ -21,6 +21,7 @@ services:
- MYSQL_ROOT_PASSWORD=querydsl
- MYSQL_USER=querydsl
- MYSQL_PASSWORD=querydsl
- MYSQL_DATABASE=querydsl

postgresql:
image: postgis/postgis:16-3.4-alpine
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package com.querydsl.jpa.domain.sql;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.*;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
import javax.annotation.processing.Generated;

/** SAccount_ is a Querydsl query type for SAccount_ */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class SAccount_ extends com.querydsl.sql.RelationalPathBase<SAccount_> {

private static final long serialVersionUID = -2128134054;

public static final SAccount_ account_ = new SAccount_("account_");

public final NumberPath<Long> id = createNumber("id", Long.class);

public final NumberPath<Long> ownerI = createNumber("ownerI", Long.class);

public final StringPath somedata = createString("somedata");

public final com.querydsl.sql.PrimaryKey<SAccount_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SPerson_> account_OWNERIFK =
createForeignKey(ownerI, "I");

public SAccount_(String variable) {
super(SAccount_.class, forVariable(variable), "null", "account_");
addMetadata();
}

public SAccount_(String variable, String schema, String table) {
super(SAccount_.class, forVariable(variable), schema, table);
addMetadata();
}

public SAccount_(String variable, String schema) {
super(SAccount_.class, forVariable(variable), schema, "account_");
addMetadata();
}

public SAccount_(Path<? extends SAccount_> path) {
super(path.getType(), path.getMetadata(), "null", "account_");
addMetadata();
}

public SAccount_(PathMetadata metadata) {
super(SAccount_.class, metadata, "null", "account_");
addMetadata();
}

public void addMetadata() {
addMetadata(
id, ColumnMetadata.named("ID").withIndex(1).ofType(Types.BIGINT).withSize(19).notNull());
addMetadata(
ownerI, ColumnMetadata.named("OWNER_I").withIndex(3).ofType(Types.BIGINT).withSize(19));
addMetadata(
somedata,
ColumnMetadata.named("SOMEDATA").withIndex(2).ofType(Types.VARCHAR).withSize(255));
}
}
131 changes: 131 additions & 0 deletions querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAnimal_.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
package com.querydsl.jpa.domain.sql;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.*;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
import javax.annotation.processing.Generated;

/** SAnimal_ is a Querydsl query type for SAnimal_ */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class SAnimal_ extends com.querydsl.sql.RelationalPathBase<SAnimal_> {

private static final long serialVersionUID = 2052848731;

public static final SAnimal_ animal_ = new SAnimal_("animal_");

public final BooleanPath alive = createBoolean("alive");

public final DateTimePath<java.sql.Timestamp> birthdate =
createDateTime("birthdate", java.sql.Timestamp.class);

public final NumberPath<Double> bodyweight = createNumber("bodyweight", Double.class);

public final NumberPath<Integer> breed = createNumber("breed", Integer.class);

public final NumberPath<Integer> color = createNumber("color", Integer.class);

public final DatePath<java.sql.Date> datefield = createDate("datefield", java.sql.Date.class);

public final StringPath dtype = createString("dtype");

public final NumberPath<Integer> eyecolor = createNumber("eyecolor", Integer.class);

public final NumberPath<Float> floatproperty = createNumber("floatproperty", Float.class);

public final NumberPath<Integer> id = createNumber("id", Integer.class);

public final NumberPath<Integer> mateId = createNumber("mateId", Integer.class);

public final StringPath name = createString("name");

public final TimePath<java.sql.Time> timefield = createTime("timefield", java.sql.Time.class);

public final NumberPath<Integer> toes = createNumber("toes", Integer.class);

public final NumberPath<Integer> weight = createNumber("weight", Integer.class);

public final com.querydsl.sql.PrimaryKey<SAnimal_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SAnimal_> animal_MATEIDFK =
createForeignKey(mateId, "ID");

public final com.querydsl.sql.ForeignKey<SAnimal_> _animal_MATEIDFK =
createInvForeignKey(id, "MATE_ID");

public final com.querydsl.sql.ForeignKey<SKittens> _kittensCatIdFK =
createInvForeignKey(id, "cat_id");

public final com.querydsl.sql.ForeignKey<SKittens> _kittensKittenIdFK =
createInvForeignKey(id, "kitten_id");

public final com.querydsl.sql.ForeignKey<SKittensSet> _kittensSetCatIdFK =
createInvForeignKey(id, "cat_id");

public final com.querydsl.sql.ForeignKey<SKittensSet> _kittensSetKittenIdFK =
createInvForeignKey(id, "kitten_id");

public SAnimal_(String variable) {
super(SAnimal_.class, forVariable(variable), "null", "animal_");
addMetadata();
}

public SAnimal_(String variable, String schema, String table) {
super(SAnimal_.class, forVariable(variable), schema, table);
addMetadata();
}

public SAnimal_(String variable, String schema) {
super(SAnimal_.class, forVariable(variable), schema, "animal_");
addMetadata();
}

public SAnimal_(Path<? extends SAnimal_> path) {
super(path.getType(), path.getMetadata(), "null", "animal_");
addMetadata();
}

public SAnimal_(PathMetadata metadata) {
super(SAnimal_.class, metadata, "null", "animal_");
addMetadata();
}

public void addMetadata() {
addMetadata(alive, ColumnMetadata.named("ALIVE").withIndex(3).ofType(Types.BIT).withSize(1));
addMetadata(
birthdate,
ColumnMetadata.named("BIRTHDATE").withIndex(4).ofType(Types.TIMESTAMP).withSize(19));
addMetadata(
bodyweight,
ColumnMetadata.named("BODYWEIGHT").withIndex(5).ofType(Types.DOUBLE).withSize(22));
addMetadata(
breed, ColumnMetadata.named("BREED").withIndex(13).ofType(Types.INTEGER).withSize(10));
addMetadata(
color, ColumnMetadata.named("COLOR").withIndex(6).ofType(Types.INTEGER).withSize(10));
addMetadata(
datefield, ColumnMetadata.named("DATEFIELD").withIndex(7).ofType(Types.DATE).withSize(10));
addMetadata(
dtype, ColumnMetadata.named("DTYPE").withIndex(2).ofType(Types.VARCHAR).withSize(31));
addMetadata(
eyecolor,
ColumnMetadata.named("EYECOLOR").withIndex(14).ofType(Types.INTEGER).withSize(10));
addMetadata(
floatproperty,
ColumnMetadata.named("FLOATPROPERTY").withIndex(8).ofType(Types.REAL).withSize(12));
addMetadata(
id, ColumnMetadata.named("ID").withIndex(1).ofType(Types.INTEGER).withSize(10).notNull());
addMetadata(
mateId, ColumnMetadata.named("MATE_ID").withIndex(15).ofType(Types.INTEGER).withSize(10));
addMetadata(
name, ColumnMetadata.named("NAME").withIndex(9).ofType(Types.VARCHAR).withSize(255));
addMetadata(
timefield, ColumnMetadata.named("TIMEFIELD").withIndex(10).ofType(Types.TIME).withSize(8));
addMetadata(
toes, ColumnMetadata.named("TOES").withIndex(11).ofType(Types.INTEGER).withSize(10));
addMetadata(
weight, ColumnMetadata.named("WEIGHT").withIndex(12).ofType(Types.INTEGER).withSize(10));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package com.querydsl.jpa.domain.sql;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.*;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
import javax.annotation.processing.Generated;

/** SAuditlog_ is a Querydsl query type for SAuditlog_ */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class SAuditlog_ extends com.querydsl.sql.RelationalPathBase<SAuditlog_> {

private static final long serialVersionUID = 472909934;

public static final SAuditlog_ auditlog_ = new SAuditlog_("auditlog_");

public final NumberPath<Integer> id = createNumber("id", Integer.class);

public final NumberPath<Long> itemId = createNumber("itemId", Long.class);

public final com.querydsl.sql.PrimaryKey<SAuditlog_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SItem_> auditlog_ITEMIDFK =
createForeignKey(itemId, "ID");

public SAuditlog_(String variable) {
super(SAuditlog_.class, forVariable(variable), "null", "auditlog_");
addMetadata();
}

public SAuditlog_(String variable, String schema, String table) {
super(SAuditlog_.class, forVariable(variable), schema, table);
addMetadata();
}

public SAuditlog_(String variable, String schema) {
super(SAuditlog_.class, forVariable(variable), schema, "auditlog_");
addMetadata();
}

public SAuditlog_(Path<? extends SAuditlog_> path) {
super(path.getType(), path.getMetadata(), "null", "auditlog_");
addMetadata();
}

public SAuditlog_(PathMetadata metadata) {
super(SAuditlog_.class, metadata, "null", "auditlog_");
addMetadata();
}

public void addMetadata() {
addMetadata(
id, ColumnMetadata.named("ID").withIndex(1).ofType(Types.INTEGER).withSize(10).notNull());
addMetadata(
itemId, ColumnMetadata.named("ITEM_ID").withIndex(2).ofType(Types.BIGINT).withSize(19));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package com.querydsl.jpa.domain.sql;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.*;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
import javax.annotation.processing.Generated;

/** SAuthor_ is a Querydsl query type for SAuthor_ */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class SAuthor_ extends com.querydsl.sql.RelationalPathBase<SAuthor_> {

private static final long serialVersionUID = -2031691092;

public static final SAuthor_ author_ = new SAuthor_("author_");

public final NumberPath<Long> id = createNumber("id", Long.class);

public final StringPath name = createString("name");

public final com.querydsl.sql.PrimaryKey<SAuthor_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SBook_> _book_AUTHORIDFK =
createInvForeignKey(id, "AUTHOR_ID");

public SAuthor_(String variable) {
super(SAuthor_.class, forVariable(variable), "null", "author_");
addMetadata();
}

public SAuthor_(String variable, String schema, String table) {
super(SAuthor_.class, forVariable(variable), schema, table);
addMetadata();
}

public SAuthor_(String variable, String schema) {
super(SAuthor_.class, forVariable(variable), schema, "author_");
addMetadata();
}

public SAuthor_(Path<? extends SAuthor_> path) {
super(path.getType(), path.getMetadata(), "null", "author_");
addMetadata();
}

public SAuthor_(PathMetadata metadata) {
super(SAuthor_.class, metadata, "null", "author_");
addMetadata();
}

public void addMetadata() {
addMetadata(
id, ColumnMetadata.named("ID").withIndex(1).ofType(Types.BIGINT).withSize(19).notNull());
addMetadata(
name, ColumnMetadata.named("NAME").withIndex(2).ofType(Types.VARCHAR).withSize(255));
}
}
56 changes: 56 additions & 0 deletions querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBar_.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package com.querydsl.jpa.domain.sql;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.*;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
import javax.annotation.processing.Generated;

/** SBar_ is a Querydsl query type for SBar_ */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class SBar_ extends com.querydsl.sql.RelationalPathBase<SBar_> {

private static final long serialVersionUID = 1493110580;

public static final SBar_ bar_ = new SBar_("bar_");

public final DatePath<java.sql.Date> date = createDate("date", java.sql.Date.class);

public final NumberPath<Integer> id = createNumber("id", Integer.class);

public final com.querydsl.sql.PrimaryKey<SBar_> primary = createPrimaryKey(id);

public SBar_(String variable) {
super(SBar_.class, forVariable(variable), "null", "bar_");
addMetadata();
}

public SBar_(String variable, String schema, String table) {
super(SBar_.class, forVariable(variable), schema, table);
addMetadata();
}

public SBar_(String variable, String schema) {
super(SBar_.class, forVariable(variable), schema, "bar_");
addMetadata();
}

public SBar_(Path<? extends SBar_> path) {
super(path.getType(), path.getMetadata(), "null", "bar_");
addMetadata();
}

public SBar_(PathMetadata metadata) {
super(SBar_.class, metadata, "null", "bar_");
addMetadata();
}

public void addMetadata() {
addMetadata(date, ColumnMetadata.named("DATE").withIndex(2).ofType(Types.DATE).withSize(10));
addMetadata(
id, ColumnMetadata.named("ID").withIndex(1).ofType(Types.INTEGER).withSize(10).notNull());
}
}
Loading