Lombok @Builder error
I'm getting this error: when using the .builder() method on an object that I previously marked with the annotation
60 Replies
⌛
This post has been reserved for your question.
Hey @IamMax420! 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.
😱
thats truly a disaster
show the code where ur trying to use builder
Ikr
I'm going insane atp there's always some fucking bug everyday 😿
so here's where I'm using it
do u still have the old dependency setup for lombok
and here's the Book entity
that we were doing
last time
nah this is a new project
I'm doing microservices now 🤡
l0l
oops
wrong message
when u format code
do 3 ticks and type java
at the beginning of the message
so it has color
look
anyway
you probably dont need to specify nullable false on each field
instead you could do validation on the fields when you are creating the entity
next
show the pom file with lombok setup
for some reason it's not letting me post the pom.xml file
I'm getting some discord error
o btw you can just do
to make it unique
on the field
Damn
alr
instead of that table annotation
oh it worked this time
unbelieveable
truly crazy right
it's basically the same as the one we were figuring out yesterday
is it the same setup as last time
oh
ye
i think it was like 3 days ago tho
lol
idk I have dementia
lmaoo
whats ur
java version
21
ok wait ill check something
is this part new or no i forgot
nvm its not new
ok so if you can try to get rid of the all args constructor
annotation
and see if that helps
that didn't work
did u import the right builder package btw lmao
yeah
what the fuck
I did not get that error before
ha
wtf does that even mean
it says you need
no args constructor
and all args constructor
if i remember correctly
yeah I added them back and I'm still getting the error
but yea i was asking u to delete all args for testing
r u using intellij
yeah
do you know how to run maven clean install
ye I did that like 50 times during past hour
lol
did you refresh the pom too
how do u do that
you see the m
on the right of your screen
maven gui
ye ye
ok click it
and at the top u should see the refresh icon
that once u hover on it should say
refresh all maven projects
so click it
holy fuck it works
the button or the builder method
lmao
bruh I thought
mvn clean install
will take care of all that
the builder methodnice
yea apparently you had some old cache or something
I'd get u a donut or something for the help but idk where u are and Im from Poland
so I can give you some pierogi
they're good asf
i want vodka
ezzzzzzzzzzzzzzzzzz
which one is the best that u make
I like absolut vodka, not sure if it's even polish lol
I once drank vodka and beer at the same time and threw up
so don't make the same mistake as me
lol
i think absolut is russian
try rasputin the one with 70 percent alcohol
:SkullPixel:
💀
we have spirytus that's like 90-95%
o mamma mia
but yea if u wanna know why mvn clean install didnt help ask his sudoness daniel
cuz idk how to explain that one in detail
gotcha
thanks again
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@589517424093691905>.