After altering DB build is failing saying variable is already defined in class like DblinkGetNotify.java, DblinkGetNotifyRecord.java

47 views
Skip to first unread message

parth...@gmail.com

unread,
Jan 10, 2018, 8:17:56 AM1/10/18
to jOOQ User Group
Hello,
This is to inform you that I am using jooq in one of my project and using postgresql DB.
Now I have done some small changes in DB like altering (adding/deleting) some columns and adding constraints. After doing these DB changes while building my project I am getting compilation error. The error trace is as follows:

[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[49,17] method setNotifyName(java.lang.String) is already defined in class com.generated.tables.records.DblinkGetNotifyRecord
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[56,19] method getNotifyName() is already defined in class com.generated.tables.records.DblinkGetNotifyRecord
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[77,17] method setBePid(java.lang.Integer) is already defined in class com.generated.tables.records.DblinkGetNotifyRecord
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[84,20] method getBePid() is already defined in class com.generated.tables.records.DblinkGetNotifyRecord
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[105,17] method setExtra(java.lang.String) is already defined in class com.generated.tables.records.DblinkGetNotifyRecord
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[112,19] method getExtra() is already defined in class com.generated.tables.records.DblinkGetNotifyRecord
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[362,60] variable notifyName is already defined in constructor DblinkGetNotifyRecord(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String)
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[362,95] variable bePid is already defined in constructor DblinkGetNotifyRecord(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String)
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/records/DblinkGetNotifyRecord.java:[362,123] variable extra is already defined in constructor DblinkGetNotifyRecord(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String)
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/DblinkGetNotify.java:[57,60] variable NOTIFY_NAME is already defined in class com.generated.tables.DblinkGetNotify
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/DblinkGetNotify.java:[67,61] variable BE_PID is already defined in class com.generated.tables.DblinkGetNotify
[ERROR] /D:/Project/common/src/main/java/com/generated/tables/DblinkGetNotify.java:[77,60] variable EXTRA is already defined in class com.generated.tables.DblinkGetNotify

I have seen some of the extra java classes got generated after doing the DB changes like Dblink.java, DblinkFetch.java, DblinkGetNotify.java, DblinkGetPkey.java, DblinkGetResult.java
inside generated\tables folder and 
DblinkFetchRecord.java, DblinkGetNotifyRecord.java, DblinkGetPkeyRecord.java, DblinkGetResultRecord.java, DblinkRecord.java
inside generated\records folder.

I deleted the generated folder and tried to build the project again but the same problem still persist.

Can anyone please suggest, how to get rid of this compilation error.

Thanks,
Anirban


Lukas Eder

unread,
Jan 10, 2018, 11:04:04 AM1/10/18
to jooq...@googlegroups.com
There is a known issue regarding the overloading of table valued functions:

Is that the case in your case?

If not, could you please provide the CREATE TABLE statements for the relevant tables, and the code generation configuration that you're using?

Thanks,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages