5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-17 01:11:07 +08:00

SQOOP-1136. Sqoop2: MBooleanInput should copy persistenceId when cloning.

(Mengwei Ding via Hari Shreedharan)
This commit is contained in:
Hari Shreedharan 2013-07-12 16:12:30 -07:00
parent 2e196a8419
commit 4997f97bc3

View File

@ -74,6 +74,7 @@ public void setEmpty() {
@Override
public Object clone(boolean cloneWithValue) {
MBooleanInput copy = new MBooleanInput(getName(), isSensitive());
copy.setPersistenceId(this.getPersistenceId());
if(cloneWithValue) {
copy.setValue(getValue());
}