Does exposed have something like Hibernat's id-ann...
# exposed
a
Does exposed have something like Hibernat's id-annotation and the @GeneratedValue for the id Because I am having the problem that I always should initialize the users with an id of -1, if I don't get the from the db Is there any solution you know about?
o
Could you give more context? I haven't understand the moment with "if I don't get the from the db", does it mean that you have nullable
id
field (I don't expect it, but who knows) In general, you can mark column as
databaseGenerated
and Exposed will expect that the value should be generated on the DB side, and to complain if you skip this column on the entry creation.
a
nevermind I found the solution
👌 1