Labs
-
Add
@GeneratedValueannotation to theidfield of the following Entities: -
Language FilmAddress-
Staff -
Create a
Rentalentity.- Map the following fields:
idrentalDatereturnDate
Here is the rental table for reference:
```
+--------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+------------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| rental_date | datetime | NO | MUL | NULL | |
| inventory_id | int(10) unsigned | NO | MUL | NULL | |
| customer_id | int(10) unsigned | NO | MUL | NULL | |
| return_date | datetime | YES | | NULL | |
| staff_id | int(10) unsigned | NO | MUL | NULL | |
+--------------+------------------+------+-----+---------+----------------+
```
-
Create JUnit test cases for Rental to check that it's mappings are successful.
-
If you are getting a failed test, check the console to see why it is failing.
-
What could :
Caused by: org.hibernate.UnknownEntityTypeExceptionbe indicating?