Hi. I use spring data jdbc and 'infobip-spring-data-querydsl:7.2.0' (also, infobip-spring-data-jdbc-annotation-processor.)
When i generate Q class, most of entities are created well. But, Entities with @table( name = "somthing") annotation, Q class's constructor generated like this.
public QSlotGroup(String variable) {
super(SlotGroup.class, forVariable(variable), null, "");
addMetadata();
}
As you see, table name Field fill with "".
public RelationalPathBase(Class<? extends T> type, PathMetadata metadata, String schema,
String table) {
super(type, metadata);
this.schema = schema;
this.table = table;
this.schemaAndTable = new SchemaAndTable(schema, table);
}
@Table(name = "slot_group") -> @Table("slot_group")
public QSlotGroup(String variable) {
super(SlotGroup.class, forVariable(variable), null, "slot_group");
addMetadata();
}
I solved it by changing it like this, but I think there may be other solutions or improvements, so I'm writing this issue.
Hi. I use spring data jdbc and 'infobip-spring-data-querydsl:7.2.0' (also, infobip-spring-data-jdbc-annotation-processor.)
When i generate Q class, most of entities are created well. But, Entities with @table( name = "somthing") annotation, Q class's constructor generated like this.
As you see, table name Field fill with "".
@Table(name = "slot_group") -> @Table("slot_group")I solved it by changing it like this, but I think there may be other solutions or improvements, so I'm writing this issue.