In deze opdracht gaan we gebruik maken van transacties.
Stap 1. Voorzie een methode die de stock aanpast van twee bieren. Gebruik hiervoor transacties.
public void changeStockForBeers(String beerName1, String beerName2, int stockChange);
Stap 2. Alvorens deze te committen, voer de roll back methode uit. En kijk wat er gebeurt in de databank.
De oplossing tot deze opdracht kan je terugvinden op onze GitHub Repository met de tag Assignment8
Cookie | Duur | Beschrijving |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |