Skip to content

Commit 625a9f4

Browse files
committed
Update coursework.asciidoc
1 parent 8e4ac3f commit 625a9f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coursework.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ These features are:
142142

143143
IMPORTANT: The automatic deletion of related entities *must* be handled with JPA link:http://docs.oracle.com/javaee/6/tutorial/doc/bnbqa.html[Entity relationship @Annotations] (e.g. `@ManyToOne`, `@ManyToMany` etc...), which are provided by link:https://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#entity-mapping-association[Hibernate]. You should therefore implement all relationships between entities using these annotations, even if you did not do so in Part 1.
144144

145+
TIP: This will mean that you should store full objects (or lists of objects) in your models, rather than just Ids. You should be careful to familiarise yourself with the [Jackson JSON annotations](https://github.com/FasterXML/jackson-annotations/wiki/Jackson-Annotations) if you have not already (particularly `@JsonIgnore` which prevents the "recursive" definition problem).
146+
145147
=== Transactional Endpoint.
146148

147149
You must create a `GuestBooking` Bean and RestService class.

0 commit comments

Comments
 (0)