-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#134 Extras are now item-specific #135
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still does not support history.
var price: Int) { | ||
|
||
@ManyToOne | ||
lateinit var item: ItemEntity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use JoinColumn
- Provide default value (required for live db migration)
@ManyToOne | ||
var circle: CircleEntity, | ||
@ManyToOne | ||
var circle: CircleEntity, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we store the circle id here?
mappedExtra.name, | ||
CustomComponentType.valueOf(mappedExtra.type), | ||
i | ||
) | ||
optionalExtra.ifPresentOrElse({ | ||
it.price = mappedExtra.prices[i] | ||
extrasRepository.save(it) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the display name here.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Closes #134