As far as I know, id field is generated automatically.
If you look at the getID() method of
org.apache.roller.pojos.UserData,
**********************
/** Id of the User.
* Not remote since primary key may be extracted
by other means.
*
* @struts.validator type="required"
msgkey="errors.required"
* @ejb:persistent-field
* @hibernate.id column="id"
* generator-class="uuid.hex"
unsaved-value="null"
*/
public String getId() {
return this.id;
}
*******************************
it says that the generator class for id is uuid.hex.
That is, you do not have to set the id field; it will
be automatically set.
Sedat
--- Eduard Ketler <[EMAIL PROTECTED]> wrote:
>
> I looked for it and find the method flushed. But it
> doesnt tells me how the
> id will be generated. I cant find the details for
> flushed?
>
> greetings Eduard Ketler
>
>
>
> Richard Jones-13 wrote:
> >
> > Have a look at:
> >
> >
>
org.apache.roller.ui.core.struts.actions.UserBaseAction
> >
>
org.apache.roller.ui.core.struts.actions.UserNewAction
> >
>
org.apache.roller.ui.admin.struts.actions.UserAdminAction
> >
> > I believe the Id's are created when the user data
> is 'flushed'.
> >
> > HTH
> >
> > - Richard
> >
> >
> >
> >
> > On 20/04/07, Eduard Ketler <[EMAIL PROTECTED]>
> wrote:
> >>
> >> Can somebody say me where i find the class and
> method where a new user
> >> will
> >> be created? I need the function to see how the id
> will be generated.
> >> --
> >> View this message in context:
> >>
>
http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
> >> Sent from the Roller - Dev mailing list archive
> at Nabble.com.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10135639
> Sent from the Roller - Dev mailing list archive at
> Nabble.com.
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com