Hi,
I have a problem that must be solved using Hibernate
specific attributes such as SQL-TYPE.
So what I want to do is to write normal entity with
javax.persistane annotations and to add some Hibernate
specific stuff to one of it's columns.
I've tried to write Contact.hbm.xml in Contact's
Hi,
I have run into a problem using SqlResultSetMapping.
I have defined next SqlResultSetMapping:
@SqlResultSetMapping(name =Proba,
| entities = [EMAIL PROTECTED](entityClass=ReportAllTemp.class,
| fields = {
| @FieldResult(name = locationId,column = LOCATION_ID),
|
andydale wrote : Hi,
|
| Try declaring your sdequence as so:
| @SequenceGenerator(name = tsperson_sequence, allocationSize=1,
sequenceName = SEQ_TSPERSON_ID)
| You must have the allocationSize=1 (or some other value) or it uses some
kind of hi-lo strategy.
|
| Cheers,
|
| Andy
I'm writing entity for person and this is the part of the class.
@Entity
| @SequenceGenerator(name = tsperson_sequence, sequenceName =
SEQ_TSPERSON_ID)
| public class Tsperson implements Serializable {
| @Id
| @GeneratedValue(strategy=GenerationType.SEQUENCE,