public class SecureKeyStore {
...
private byte[] keyStore;
...
public byte[] getKeyStore() {
return keyStore;
}
public void setKeyStore(byte[] keyStore) {
this.keyStore = keyStore;
}
}
to :
public class SecureKeyStoreDTO {
public byte[] keyStore;
.....
public byte[] getKeyStore() {
return keyStore;
}
public void setKeyStore(byte[] keyStore) {
this.keyStore = keyStore;
}
}
with this mapper :
@Mapper(withIgnoreMissing = IgnoreMissing.ALL)
public interface SecureKeyStoreMapper {
SecureKeyStoreDTO asDTO(SecureKeyStore source);
SecureKeyStore as(SecureKeyStoreDTO in, SecureKeyStore out);
}
The generated mapper is :
System.arraycopy(in.getKeyStore(), 0, out.setKeyStore, 0, in.getKeyStore().length);
So he can't work ! It's the same with char[]
Thx
The text was updated successfully, but these errors were encountered:
When i use mapper to convert this class :
to :
with this mapper :
The generated mapper is :
System.arraycopy(in.getKeyStore(), 0, out.setKeyStore, 0, in.getKeyStore().length);
So he can't work ! It's the same with char[]
Thx
The text was updated successfully, but these errors were encountered: