Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

MANDATORY

Sumit Rawal answered on April 25, 2021 Popularity 10/10 Helpfulness 1/10

Contents


More Related Answers

  • input required
  • how to make form fields mandatory in html

  • MANDATORY

    0

    PROPAGATION_MANDATORY specifies that a method must be executed within a transaction, otherwise an exception will be thrown. This is useful when you have a method that should always be called within the context of an existing transaction, and you want to ensure that it is not accidentally executed outside of that context.

    Consider the following scenario: you have a service layer method that updates a user’s information in the database. This method should only be called when there is an existing transaction, as it needs to be executed atomically with other database operations.

    Let’s look at an example implementation of this service method using PROPAGATION_MANDATORY

    Popularity 10/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on May 15 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    39
    Popularity 10/10 Helpfulness 4/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 25 2021
    Ugliest Unicorn
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.