thanks, the problem was that the base class are in the target folder. It make sense for me because it's normal that the classes used for the transport tier should not be changed by the client, but the vo used in the application domain have the application's logic.
my solution now is to add a the generated/flexmojos foldr to my sources if someone has a better solution is welcome thanks Matteo 2010/3/10 Marvin Froeder <[email protected]> > http://www.graniteds.org/confluence/display/DOC/2.+Gas3+Code+Generator > > > On Wed, Mar 10, 2010 at 9:27 AM, Matteo Lanzi [Gallo_Teo] < > [email protected]> wrote: > >> hi everybody, i just tried the generate goal and it create all my >> classes but i have some problems: >> >> - the classes are empty ( no getter and setter are specified ) >> - all the generated classes extend a non existing class called >> yourClassName + DtoBase >> >> an example is >> >> java part : >> >> package example; >> >> public class AnimalDto >> { >> >> private String name; >> >> private byte legCount; >> >> >> protected void check( byte value ) >> { >> >> if( value <= 0 || value > 8 ) >> throw new IllegalArgumentException(); >> >> } >> >> public AnimalDto() >> { >> >> name = ""; >> legCount = 4; >> >> } >> >> public String getName() >> { >> return name; >> } >> >> public void setName( String name ) >> { >> this.name = name; >> } >> >> >> public byte getLegCount() >> { >> return legCount; >> } >> >> >> public void setLegCount(byte legCount) >> { >> >> this.legCount = legCount; >> >> } >> >> @Override >> public int hashCode() >> { >> >> final int prime = 31; >> >> int result = 1; >> result = prime * result + ((name == null) ? 0 : >> name.hashCode()); >> >> return result; >> >> } >> >> >> @Override >> public boolean equals( Object obj ) >> { >> >> if (this == obj) >> return true; >> if (obj == null) >> return false; >> if (!(obj instanceof AnimalDto)) >> return false; >> final AnimalDto other = (AnimalDto) obj; >> if (legCount != other.legCount) >> return false; >> if (name == null) { >> if (other.name != null) >> return false; >> } else if (!name.equals(other.name)) >> return false; >> >> return true; >> >> } >> >> @Override >> public String toString() >> { >> >> return getClass().getSimpleName() + "[" + name + ", " + >> legCount + >> "]"; >> >> } >> >> } >> >> >> >> >> >> >> >> as3 class generated >> >> /** >> * Generated by Gas3 v2.1.0 (Granite Data Services). >> * >> * NOTE: this file is only generated if it does not exist. You may >> safely put >> * your custom code here. >> */ >> >> package example { >> >> [Bindable] >> [RemoteClass(alias="example.AnimalDto")] >> public class AnimalDto extends AnimalDtoBase { >> } >> } >> >> >> >> any idea about how to fix that ?? >> >> >> >> thanks in advance >> Matteo >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Flex Mojos" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<flex-mojos%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/flex-mojos?hl=en?hl=en >> >> http://flexmojos.sonatype.org/ >> > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos?hl=en?hl=en > > http://flexmojos.sonatype.org/ > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://flexmojos.sonatype.org/
