0 Replies Latest reply on Apr 11, 2006 6:16 AM by Didi

    equivalent to @Id(generate = GeneratorType.NONE)

    Didi Newbie

      Hi,

      I am using the EJB3.0 stuff with JBoss 4.0.4RC1. Even though I looked at the available migration guides, I could not find a proper answer. In the 4.0.3 Version I used

       @Id(generate = GeneratorType.NONE)
       public String getUsername() {
       return this.username;
       }
      

      in order to allow the user to chose its own username. It should not get generated automatically. Since version 4.0.4 it does not seem to work any longer. Now here is my question: what is the equivalent (Hibernate) annotation for this? I know that you need to use @GeneratedValue for this now, but none of its strategies (strategy=GenerationType.XYZ) fulfill my purpose.

      Thanks in advance