[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Annotations overriding

2007-07-06 Thread stupar.aleksandar
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - SqlResultSetMapping

2007-06-21 Thread stupar.aleksandar
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), |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting generated ID by sequence

2007-03-12 Thread stupar.aleksandar
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Getting generated ID by sequence

2007-03-05 Thread stupar.aleksandar
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,