On Nov 14, 2007 1:09 AM, Matthew Wu <[EMAIL PROTECTED]> wrote:
>
> Thank you!
> I have a POJO like this (The next codes are all generated by
> appfuse:gen-model):
> @Entity
> @Table(name="MATTHEW",schema="DQTRACER")
> public class Matthew extends BaseObject implements Serializable {
> private MatthewId id;
> private String name;
> private String description;
>
> @EmbeddedId @GeneratedValue(strategy = GenerationType.AUTO)
> public MatthewId getId() {
> return this.id;
> }
> .....
> }
>
>
> @Embeddable
> public class MatthewId extends BaseObject implements Serializable {
> private Long id1;
> private Long id2;
> ...
> }.
>
> But when I want to execute :"mvn appfuse:gen -Dentity=Matthew", there will
> be some error: http://www.nabble.com/file/p13742114/test.txt test.txt .
>
> I think: in appfuse1.9.x, we can generate code for POJO with composite ID,
> how can i do in appfuse2.x?
AppFuse 2.x doesn't support this yet. The good news is you can try
modifying the templates to support it. If you get it working, we'd be
happy to add support.
http://tinyurl.com/27set9
Matt
>
> thanks a lot
> --
> View this message in context:
> http://www.nabble.com/appfuse%3Agen--POJO-with-composite-ID-tf4803300s2369.html#a13742114
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]