|
@@ -17,8 +17,6 @@
|
|
|
*/
|
|
|
|
|
|
package org.hswebframework.web.commons.entity;
|
|
|
-
|
|
|
-import java.util.Collections;
|
|
|
import java.util.LinkedHashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -38,11 +36,11 @@ public interface GenericEntity<PK> extends CloneableEntity {
|
|
|
void setId(PK id);
|
|
|
|
|
|
default Map<String, Object> getProperties() {
|
|
|
- return Collections.emptyMap();
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
default void setProperties(Map<String, Object> properties) {
|
|
|
- throw new UnsupportedOperationException("不支持此操作");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|