Yes, that looks like a bug in the singular/plural naming algorithm, probably
due to the 2 s.
Can you add a bug in jira: http://www.fornax-platform.org/tracker/browse/CSC

/Patrik


jskillings wrote:
> 
> Strange error.  Looks like a bug.
> 
> Here is the error I am getting while generating the CRUD gui.  Some how
> the last character of variable name and method name is getting truncated.  
> Instead of "address", the variable name generated is "addres", and instead
> of the method name "removeAddress", the generated method is
> "removeAddres".    Fixing the variable and method name resolved the
> compilation failure issues, but the generator still needs to be fixed.
> 
> 
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building Web project for hr-web
> [INFO]    task-segment: [clean, install]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [clean:clean]
> [INFO] Deleting directory
> C:\fornax\temp\archetype2\hr-parent\..\hr-web\target
> [INFO] [fornax-oaw-m2:run-workflow {execution: default}]
> [INFO] oAW Maven2 Plugin V2.0.0
> ....
> 
> .....
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> 
> C:\fornax\temp\archetype2\hr-parent\..\hr-web\src\generated\java\com\company\hr\
> web\CreateUserForm.java:[73,12] cannot find symbol
> symbol  : variable addres
> location: class com.company.hr.web.CreateUserForm
> 
> C:\fornax\temp\archetype2\hr-parent\..\hr-web\src\generated\java\com\company\hr\
> web\UpdateUserForm.java:[99,12] cannot find symbol
> symbol  : variable addres
> location: class com.company.hr.web.UpdateUserForm
> 
> C:\fornax\temp\archetype2\hr-parent\..\hr-web\src\generated\java\com\company\hr\
> web\UpdateUserActionBase.java:[113,23] cannot find symbol
> symbol  : method removeAddres()
> location: class com.company.hr.web.UpdateUserForm
> 
> C:\fornax\temp\archetype2\hr-parent\..\hr-web\src\generated\java\com\company\hr\
> web\CreateUserActionBase.java:[87,23] cannot find symbol
> symbol  : method removeAddres()
> location: class com.company.hr.web.CreateUserForm
> 
> 
> Steps to reproduce the bug
> -------------------------------------
> 
> 1) Create a command file
> 
> set MVN_HOME=C:\apache-maven-2.0.8
> set JAVA_HOME=C:\Java\jdk1.6.0_03
> set path=%MVN_HOME%\bin;%JAVA_HOME%\bin
> 
> set PACKAGE=%1
> set SYS_NAME=%2
> 
> call mvn archetype:create -DarchetypeGroupId=org.fornax.cartridges
> -DarchetypeArtifactId=fornax-cartridges-sculptor-archetype-parent
> -DarchetypeVersion=1.2.0
> -DremoteRepositories=http://www.fornax-platform.org/m2/repository
> -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%-parent
> 
> call mvn archetype:create -DarchetypeGroupId=org.fornax.cartridges
> -DarchetypeArtifactId=fornax-cartridges-sculptor-archetype
> -DarchetypeVersion=1.2.0
> -DremoteRepositories=http://www.fornax-platform.org/m2/repository
> -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%
> 
> call mvn archetype:create -DarchetypeGroupId=org.fornax.cartridges
> -DarchetypeArtifactId=fornax-cartridges-sculptor-archetype-web
> -DarchetypeVersion=1.2.0
> -DremoteRepositories=http://www.fornax-platform.org/m2/repository
> -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%-web
> 
> call mvn archetype:create -DarchetypeGroupId=org.fornax.cartridges
> -DarchetypeArtifactId=fornax-cartridges-sculptor-archetype-ear
> -DarchetypeVersion=1.2.0
> -DremoteRepositories=http://www.fornax-platform.org/m2/repository
> -DgroupId=%PACKAGE% -DartifactId=%SYS_NAME%-ear
> 
> pause
> 
> cd %SYS_NAME%-parent
> 
> call mvn install
> 
> pause
> 
> call mvn -DdownloadSources=false eclipse:eclipse
> 
> cd ..
> 
> 2) Execute the command file to create the four sub projects
> 
> 3) Use the following model.design
> 
> Application MyApp {
>     basePackage=com.company
> 
>     Module hr {
> 
>         Service UserService {
>           findUserById => UserRepository.findById;
>           findAllUsers => UserRepository.findAll;
>         }
> 
>         Entity User {
>         !optimisticLocking
>         !auditable
>         String firstname key
>           String secondname key
>         Date Birthday nullable
>           - @Address address <-> user
> 
>           Repository UserRepository {
>           findById;
>           findAll;
>           save;
>           merge;
>           delete;
>           }
>         }
> 
>         Entity Address {
>         !optimisticLocking
>         !auditable
>           String Zip key
>         String City nullable
>         String Street nullable
>         String State nullable
>           - Set<@User> user <-> address
> 
>         }
>     }
> }
> 
> 4) Build the application with mvn -Dmaven.test.skip=true clean install
> from the parent
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Sculptor-1.2%3A--Error-in-variable---method-names-during-CRUD-GUI-generation-tp14655363s17564p14659566.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to