mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
WirteJson allow include identifier
This commit is contained in:
@@ -506,6 +506,9 @@ public final class WriteJson implements SpiJsonWriter {
|
||||
return true;
|
||||
if (currentIncludeProps != null) {
|
||||
// explicitly controlled by pathProperties
|
||||
if (prop.isId() && currentIncludeProps.contains("${identifier}")) {
|
||||
return true;
|
||||
}
|
||||
return currentIncludeProps.contains(prop.name());
|
||||
} else {
|
||||
// include only loaded properties
|
||||
|
||||
Reference in New Issue
Block a user