You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/03/15 14:57:50 UTC
[causeway] branch master updated: CAUSEWAY-3380: update mignotes
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/master by this push:
new bbddbc6072 CAUSEWAY-3380: update mignotes
bbddbc6072 is described below
commit bbddbc6072efc9314152a153529bef2623ca1d39
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Mar 15 15:57:43 2023 +0100
CAUSEWAY-3380: update mignotes
---
.../modules/applib/pages/index/id/LogicalType.adoc | 2 +-
.../relnotes/modules/ROOT/pages/2023/2.0.0-RC1/mignotes.adoc | 9 +++++++++
.../src/main/java/org/apache/causeway/applib/id/LogicalType.java | 4 +---
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/antora/components/refguide-index/modules/applib/pages/index/id/LogicalType.adoc b/antora/components/refguide-index/modules/applib/pages/index/id/LogicalType.adoc
index 46cc49e21b..2c14e0e4e9 100644
--- a/antora/components/refguide-index/modules/applib/pages/index/id/LogicalType.adoc
+++ b/antora/components/refguide-index/modules/applib/pages/index/id/LogicalType.adoc
@@ -107,7 +107,7 @@ Canonical name of the corresponding class.
Returns the logical-type-name (unique amongst non-abstract classes), as per the _LogicalTypeFacet_ .
-This will typically be the value of the _DomainObject#logicalTypeName()_ annotation attribute. If none has been specified then will default to the fully qualified class name (with _ClassSubstitutorRegistry class name substituted_ if necessary to allow for runtime bytecode enhancement.
+This will typically be the value of the _Named#value()_ annotation attribute. If none has been specified then will default to the fully qualified class name (with _ClassSubstitutorRegistry class name substituted_ if necessary to allow for runtime bytecode enhancement.
The _ObjectSpecification_ can be retrieved using _SpecificationLoader#specForLogicalTypeName(String)_ } passing the logical-type-name as argument.
diff --git a/antora/components/relnotes/modules/ROOT/pages/2023/2.0.0-RC1/mignotes.adoc b/antora/components/relnotes/modules/ROOT/pages/2023/2.0.0-RC1/mignotes.adoc
index 483c123893..4279b52604 100644
--- a/antora/components/relnotes/modules/ROOT/pages/2023/2.0.0-RC1/mignotes.adoc
+++ b/antora/components/relnotes/modules/ROOT/pages/2023/2.0.0-RC1/mignotes.adoc
@@ -168,4 +168,13 @@ where arguments are auto-resolved by the `ServiceRegistry`.
If the `ViewModel` has multiple _public_ constructors, it picks (the) one,
that has an `@Inject` or `@Autowired` annotation.
+| `@DomainObject(logicalTypeName=..)`
+| removed as deprecated since 2.0.0-M8; use `@Named` instead
+
+| `@DomainService(logicalTypeName=..)`
+| removed as deprecated since 2.0.0-M8; use `@Named` instead
+
+| `@Value(logicalTypeName=..)`
+| removed as deprecated since 2.0.0-M8; use `@Named` instead
+
|===
diff --git a/api/applib/src/main/java/org/apache/causeway/applib/id/LogicalType.java b/api/applib/src/main/java/org/apache/causeway/applib/id/LogicalType.java
index a52bf72596..b8d073eddd 100644
--- a/api/applib/src/main/java/org/apache/causeway/applib/id/LogicalType.java
+++ b/api/applib/src/main/java/org/apache/causeway/applib/id/LogicalType.java
@@ -31,7 +31,6 @@ import javax.persistence.Table;
import org.springframework.lang.Nullable;
-import org.apache.causeway.applib.annotation.DomainObject;
import org.apache.causeway.commons.internal.base._Strings;
import org.apache.causeway.commons.internal.exceptions._Exceptions;
import org.apache.causeway.commons.internal.reflection._Annotations;
@@ -114,7 +113,6 @@ implements
* @apiNote Does only simple inference, not involving classifier plugins.
* Use with caution!
*/
- @SuppressWarnings("removal")
public static LogicalType infer(
final @NonNull Class<?> correspondingClass) {
@@ -182,7 +180,7 @@ implements
* {@link LogicalTypeFacet}.
*
* <p>
- * This will typically be the value of the {@link DomainObject#logicalTypeName()} annotation attribute.
+ * This will typically be the value of the {@link Named#value()} annotation attribute.
* If none has been specified then will default to the fully qualified class name (with
* {@link ClassSubstitutorRegistry class name substituted} if necessary to allow for runtime
* bytecode enhancement.