https://kotlinlang.org logo
#exposed
Title
# exposed
j

Jeff

11/03/2021, 1:08 PM
How do I generate a unique id like INV0001 using exposed?
t

tapac

11/05/2021, 2:19 PM
Where do you want to generate the unique value in your code or on database side?
j

Jeff

11/05/2021, 2:20 PM
In the database side
t

tapac

11/05/2021, 2:25 PM
Then you'll need to write the custom database function, I guess and use it as a default value for a column.
j

Jeff

11/08/2021, 4:36 AM
What about in the code? How can I ensure uniqueness
4 Views