-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: WARN about SequenceGenerator I don't understand
PostPosted: Mon Jun 26, 2006 2:57 am 
Regular
Regular

Joined: Wed Sep 28, 2005 6:45 pm
Posts: 56
WARN AnnotationBinder:339 - Hibernate does not support SequenceGenerator.initialValue()

I am using Hibernate 3.2R2 and Annotations 3.2R2

The generated source looks like this


Code:
...
   // Property accessors
   @SequenceGenerator(name = "generator", sequenceName = "tabbtid_id_seq")
   @Id
   @GeneratedValue(strategy = SEQUENCE, generator = "generator")
   @Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true)
   public Integer getId() {
      return this.id;
   }
...


Last edited by Blackbrrd on Mon Jun 26, 2006 6:10 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 5:39 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
About first warning - default value is 1, ...

Code:
public @interface SequenceGenerator {
    java.lang.String name();

    java.lang.String sequenceName() default "";

    int initialValue() default 1;

    int allocationSize() default 50;
}

----------------

         //FIXME: work on initialValue() and allocationSize() through SequenceGenerator.PARAMETERS
         if ( seqGen.initialValue() != 0 ) {
            log.warn(
                  "Hibernate does not support SequenceGenerator.initialValue()"
            );
         }


SO it will probably be fixed in near future :-).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.