id-generation
Fluent nHibernate AutoMapping & ID Generation Scheme
How can I use Fluent NHibernate (with AutoMappin开发者_高级运维g) to configure the default ID generation scheme to Guid.Comb?I can see that I could specify in each entity (or a base class) the followi[详细]
2023-04-01 05:05 分类:问答Hibernate with Oracle sequence doesn't use it
I have configured hibernate to use oracle sequence. Sequence is created with cache=20, increment=1. All works fine, hibernate persisting entities. The id value is strange: 50,51....76,201,202...209,1[详细]
2023-03-30 01:52 分类:问答difference between native and increment id generator type
What is the basic difference between when we use native and increment types id generator in hibernate.[详细]
2023-03-15 16:27 分类:问答Getting Error while setting generated id in hibernate
I have a Student object which i need to save in database. The id : studentId is defined like in HBM :-[详细]
2023-03-14 09:39 分类:问答Hibernate/JPA mixing ID generation strategies
Suppose I have the following situation: I have 5 entities (reduced for the sake of simplicity) of which I unequivocally know that 3 of them will have few records in the database (15-20 or so each). Th[详细]
2023-02-05 10:58 分类:问答Modify Id generation for a Grails Plugin
I am using a plugin for Grails - the Amazon S3 plugin - and the domain object provided by the plugin doesn\'t specify the Id Generator. I am using Postgresql and require the id genrator to be identity[详细]
2022-12-15 18:31 分类:问答What happens if hibernate_sequences table is accidentally reset?
I am using hibernate with ID annotations: @Id @Column(name = \"ID\", nullable = false) @GeneratedValue(strategy = GenerationType.TABLE)[详细]
2022-12-12 06:30 分类:问答