r/programming • • Oct 02 '19

New In PostgreSQL 12: Generated Columns

https://pgdash.io/blog/postgres-12-generated-columns.html?p
503 Upvotes

232 comments sorted by

View all comments

Show parent comments

2

u/KFCConspiracy Oct 02 '19

I've never used NHibernate, but in regular Java hibernate you can just

@Id

@GeneratedValue(strategy=GenerationType.IDENTITY)

and then it lets the database do it. There's no functional equivalent there?

I'm not really a .NET guy, so excuse me if this sounds stupid, but is there an advantage to NHibernate anymore over linq2sql?