DATACMNS-850 - ReturnedClass now does not consider core Java types DTOs.
We now completely ignore all core Java types (i.e. types with a package name starting with "java.") from being DTOs. This allows query methods to project on date time types, too.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -304,7 +304,7 @@ public abstract class ReturnedType {
|
||||
!isPrimitiveOrWrapper() && //
|
||||
!Number.class.isAssignableFrom(type) && //
|
||||
!VOID_TYPES.contains(type) && //
|
||||
!type.getPackage().getName().startsWith("java.lang");
|
||||
!type.getPackage().getName().startsWith("java.");
|
||||
}
|
||||
|
||||
private boolean isDomainSubtype() {
|
||||
|
||||
Reference in New Issue
Block a user