Skip to content

Commit 8cfa66c

Browse files
extend from AbstractModel again and configure styler
1 parent 1187f85 commit 8cfa66c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sqldev/src/main/java/org/utplsql/sqldev/model/oddgen/GenContext.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
import java.sql.Connection;
1919

2020
import org.springframework.core.style.ToStringCreator;
21+
import org.utplsql.sqldev.model.AbstractModel;
2122

22-
public class GenContext {
23+
public class GenContext extends AbstractModel {
2324
private Connection conn;
2425
private String objectType;
2526
private String objectName;
@@ -39,7 +40,7 @@ public Connection getConn() {
3940

4041
@Override
4142
public String toString() {
42-
return new ToStringCreator(this)
43+
return new ToStringCreator(this, getStyler())
4344
.append("conn", conn)
4445
.append("objectType", objectType)
4546
.append("objectName", objectName)

0 commit comments

Comments
 (0)