Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @Transient properties to PersistentEntity and use value defaulting for transient constructor properties #2985

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Nov 4, 2024

  1. Prepare issue branch.

    mp911de committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    f2ecc51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26f6ff3 View commit details
    Browse the repository at this point in the history
  3. Ignore @Transient properties in constructors.

    We now ignore transient properties used in constructors. Regular transient properties default to the Java default values (null for object types, 0 for numeric primitives and so on).
    
    Using transient properties allows leveraging Kotlin's defaulting mechanism to infer default values.
    
    Record components can also be annotated with the Transient annotation to allow record construction. While this can be useful, we recommend using the Value annotation to use SpEL expressions to determine a useful value.
    mp911de committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    e15ea58 View commit details
    Browse the repository at this point in the history
  4. Polishing.

    Add missing Override annotations, consistently use literal tags for boolean values.
    mp911de committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    df6ca3d View commit details
    Browse the repository at this point in the history