Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Department Layers Improvement | Final Touches
Java Data Manipulation with Hibernate

bookChallenge: Department Layers Improvement

Task

This task should be quite simple for you.

Your task is to implement the updateDepartment() method in the DepartmentDaoImpl class and also implement the updateDepartment() and updateDepartmentLocation() methods in the DepartmentServiceImpl class. After completing the task, run the code in the Main class, where the code for testing is already written. There, you can verify the functionality of your methods.

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 2

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Suggested prompts:

Can you explain what the `updateDepartment()` method should do?

What should happen if the department with the given ID does not exist?

Do you want to see an example of how to test these methods in the `Main` class?

Awesome!

Completion rate improved to 4.35

bookChallenge: Department Layers Improvement

Pyyhkäise näyttääksesi valikon

Task

This task should be quite simple for you.

Your task is to implement the updateDepartment() method in the DepartmentDaoImpl class and also implement the updateDepartment() and updateDepartmentLocation() methods in the DepartmentServiceImpl class. After completing the task, run the code in the Main class, where the code for testing is already written. There, you can verify the functionality of your methods.

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 2
some-alt