id-generation

How to choose the id generation strategy when using JPA and Hibernate

老子叫甜甜 提交于 2019-11-26 03:23:21
问题 I was going through Id generation section of the Hibernate reference guide and \"java persistence with Hibernate\" There are quite a few options available with Hibernate and JPA combined. I was looking for a further documentation on how to choose the specific id generation strategy. I am also looking for tipping points. For example, hilo strategy is expected to reduce contention. I am assuming there must be a trade off associated with this choice. I want to be educated about the trade offs.

How to choose the id generation strategy when using JPA and Hibernate

有些话、适合烂在心里 提交于 2019-11-26 03:07:28
I was going through Id generation section of the Hibernate reference guide and "java persistence with Hibernate" There are quite a few options available with Hibernate and JPA combined. I was looking for a further documentation on how to choose the specific id generation strategy. I am also looking for tipping points. For example, hilo strategy is expected to reduce contention. I am assuming there must be a trade off associated with this choice. I want to be educated about the trade offs. Is there any literature available? The API Doc are very clear on this. All generators implement the