Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Samuel Dudík
PA165 Winery Management System
Commits
77e4ec8f
Commit
77e4ec8f
authored
May 15, 2022
by
Ondřej Pavlica
Browse files
Wine bottle cascading fixes
parent
cb57e13d
Pipeline
#139576
passed with stages
in 2 minutes and 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
77e4ec8f
...
...
@@ -2,7 +2,7 @@
PA165 course at MUNI Spring 2022.
# Build
and Run Tests
# Build
, Run Tests, and Launch the Web Application
Assuming you are in the root directory of this project:
```
bash
...
...
@@ -19,7 +19,7 @@ Password: `admin`
E-mail:
`user@winery.com`
Password:
`user`
# About Project
# About
the
Project
-
**Name**
: Winery Management System
-
**Technologies**
: Java 11, Spring, Hibernate, Maven
...
...
winery/dao/src/main/java/cz/muni/fi/pa165/winery/persistence/entities/OrderItem.java
View file @
77e4ec8f
...
...
@@ -5,6 +5,7 @@ import lombok.Getter;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
javax.persistence.CascadeType
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.ManyToOne
;
...
...
winery/dao/src/main/java/cz/muni/fi/pa165/winery/persistence/entities/WineBottle.java
View file @
77e4ec8f
...
...
@@ -70,4 +70,10 @@ public class WineBottle extends EntityBase{
@ManyToOne
@NotNull
private
Grape
grape
;
/**
* The reviews of this wine bottle
*/
@OneToMany
(
mappedBy
=
"wineBottle"
,
fetch
=
FetchType
.
EAGER
,
cascade
=
CascadeType
.
REMOVE
)
private
Set
<
ProductReview
>
reviews
=
new
HashSet
<>();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment