Help with Spring not adding to the database the entity
so in here when i system outprint everything is fine, the issue is that it doesnt save it in the database ? im losing my mind i dont know what the fix is, the saveBrand simply is:
and brandDB is :
18 Replies
ā
This post has been reserved for your question.
Hey @userexit! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Is there any exception?
no everythign goes smoothly
just the brand doesnt get added
š¤·āāļø
im also using this converteR:
Can you enable SQL logging?
Maybe it is in the DB already?
nah it isnt im checking the db with h2-console
i have sql logging
Maybe show what happens? Otherwise I'm just guessing
well the brand gets added successfully
it just doesnt add the characters to the db
oh so it's about the relation
Can you show the
brand
object before inserting it?
And please also show the relevant entitiesThe Brand entity:
The Character entity:


So
Character
has a private List<CharacterVersion> characters;
?yeah there are different versions of each character
Goku can be SSJ1, SSJ2 etc
oh I wasn't reading it properly
but the issue was there before I implemented that
sigma sigma on the wall whos the skibiddiest of them all
do you use the transactional annotation
on savebrand
no
do I need to ?
i mean
you can try and see if it works
š¤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.