NHibernate Hi-Lo

Yo

Fast q: are Nhibernate HiLo unique compared to the database?

I ask that we have several objects that have an image associated with them. On the client - I just store these images in a folder using the enity identifier as a name - am I going to do this?

w: //

+3
source share
1 answer

It sounds a little risky to rely on the identifiers being unique in the database.

next_hi ( hibernate_unique_key) , . next_hi, , , , max_lo .

, next_hi , max_lo, , id. , , , .

+4

Source: https://habr.com/ru/post/1745429/


All Articles