#enum problem

23 messages · Page 1 of 1 (latest)

wet grove
#

anyone knows what can be causing problems with enums? i'm attaching the error, my model and how i build my db

granite egretBOT
#

This post has been reserved for your question.

Hey @wet grove! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

calm patio
#

Why role user_role not null?

wet grove
#

because every user has to have a role - doesn't matter in this context

calm patio
#

oh you're using enums in swl as well

#

How are you accessing the DB?

wet grove
#

yessir : ]

calm patio
#

JDBC? JPA?

wet grove
#

straight jdbc, not a single jpa dependency added

#

everything through docker compose

calm patio
#

Is this Spring JDBC?

wet grove
#

exactly, i will paste you my dependecies but yes

calm patio
#

Try not using enums in your DB/SQL code

#

Spring JDBC doesn't like this I think

wet grove
#

exactly, i have seen this post but i was still wondering if this is the only way

#

okay, good to know for sure : ]

calm patio
#

or maybe try stringtype=unspecified,as the other answer suggests

wet grove
#

it worked for now, but i will need to check if this doesn't affect other things globally - strange stuff : ]

#

thanks for picking this up for me, i am kinda brain damaged when i think about this

granite egretBOT