[
https://issues.apache.org/jira/browse/CAUSEWAY-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059273#comment-18059273
]
Andi Huber commented on CAUSEWAY-3969:
--------------------------------------
Safeguard operation modes I can think of:
# DISABLE
# REQUIRE_WEAVED_WHEN_SUB_IS_WEAVED (default)
# REQUIRE_WEAVED
ad (1) safeguard only logs warnings, but otherwise does not throw
ad (2) any entity type hierarchy that violates this, will certainly fail at
runtime
ad (3) enforces weaving on all encountered entity type hierarchies
> [JPA] Fail early on inconsistent weave state within discovered entity type
> hierarchies
> --------------------------------------------------------------------------------------
>
> Key: CAUSEWAY-3969
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3969
> Project: Causeway
> Issue Type: Improvement
> Components: Persistence JPA
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 4.0.0
>
>
> For every entity discovered, its entire type hierarchy (excluding interfaces)
> needs to be either byte-code enhanced or not. Mixed states may lead to
> unpredictable behavior. That is failures later at runtime affecting
> persistence related domain code.
> We want a safeguard at application launch, that checks every discovered JPA
> entity.
> (backport to v2 is desired)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)