Hey,
I'll be adding functionality to choose generator type for each table. From
the spec, the available types are these 5:
public enum GeneratorType { TABLE, SEQUENCE, IDENTITY, AUTO, NONE };
Right now it's hardcoded with the AUTO option.
Cannot String primary keys be auto-generated? Guess we could make that a
default option?
Generator type will be available i the GUI and preferences. I'll try to
get a first version out during this week.
.eivindw
> Yes,
>
> Modify the velocity template to only generate this XDoclet tag when the
> primairy key is either a Long or Interger. That is the way its supposed
> to be anyways imho :)
>
> Regards, wouter
>
> Darren Hartford wrote:
>
>>Hey all,
>>I've been actively using the CMP30/ejb3 middlegen templates with great
>>success!
>>
>>I however ran into this issue and rather start digging into the code
>>off-the-bat, first ask if anyone knows how to solve this problem.
>>
>>I have a field in the database that is a String and the PRIMARY KEY.
>>This String will be populated by the application/user.
>>
>>When using middlegen to generate the classes from the DB, I can not
>>figure out a way to stop it from doing this:
>>
>>@javax.persistence.Id(generate = javax.persistence.GeneratorType.AUTO)
>>
>>Any recommendations?
>>
>>Thanks,
>>-D
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by:
>>Tame your development challenges with Apache's Geronimo App Server.
>> Download
>>it for free - -and be entered to win a 42" plasma tv or your very own
>>Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
>>_______________________________________________
>>middlegen-user mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/middlegen-user
>>
>>
>>
>>
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
>
>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
middlegen-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/middlegen-user