-
Nov 11th, 2009, 01:37 AM
#1
How do I add a field to an existing class
Hi All:
I am very new to roo. Trying to write a sample. When I try adding a field to an exiting domain class roo complains . I have tried the following without any luck.
A)
field date doj --type java.util.Date
java.lang.IllegalArgumentException: Java source code details unavailable for type SRC_MAIN_JAVA/com.stragure.hrms.domain.Employee
...
...
..
B) field date doj --type java.util.Date ~.domain.Employee
You cannot add more than one default option ('~.domain.Employee') in a single command
c) field date --fieldName doj --type java.util.Date --class ~.domain.Employee
Java source code details unavailable for type SRC_MAIN_JAVA/com.stragure.hrms.domain.Employee
java.lang.IllegalArgumentException: Java source code details unavailable for type SRC_MAIN_JAVA/com.stragure.hrms.domain.Employee
I am struggling to find the rite syntax maybe but tab hints lead to commands shown in (c) above but does not work and I am not sure what ava source code details unavailable for type SRC_MAIN_JAVA means...
Regards,
rohit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules