Error Compiling generated entities from Postgre
vcordaro12 Nov 26, 2007 11:51 AMI have followed the instructions to setup seam by using ./seam setup, inputing all the proper values to connect to my local postgres database. Then I run ./seam create-project and then ./seam generate-entities. All these seem to go through fine.
My entities get created and it seems to introspect the database with ease, however when I go to run ./seam restart it fails when it tries to compile the generated entities. I get messages about isEmpty in about 5 of my classes.
All seem to refer to the fact that you cannot have a isEmptry on something that is not a string.
If I remove these if statements all together then it complains about my database connection. Not sure what is going on here since it connected to the database fine when it generated my entities.
Do I need to setup a connection pool in JBoss or is that automatically done?
Thanks in advance..
Vince
restart:
[echo] Restarting project 'adlib_persistence_serivce_generator'
init:
[mkdir] Created dir: /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/exploded-archives/adlib_persistence_serivce_generator.jar
[mkdir] Created dir: /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/exploded-archives/adlib_persistence_serivce_generator.ear
[mkdir] Created dir: /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/exploded-archives/adlib_persistence_serivce_generator.war
[mkdir] Created dir: /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/dist
compile:
[javac] Compiling 108 source files to /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/exploded-archives/adlib_persistence_serivce_generator.jar
[javac] /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/src/action/com/echostorm/adlib/advis/persistence/beans/crud/AnnotationVwHome.java:26: isEmpty(java.lang.String) in org.jboss.seam.util.Strings cannot be applied to (java.lang.Integer)
[javac] if (Strings.isEmpty(getAnnotationVwId().getAnnotationId()))
[javac] ^
[javac] /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/src/action/com/echostorm/adlib/advis/persistence/beans/crud/AnnotationVwHome.java:28: isEmpty(java.lang.String) in org.jboss.seam.util.Strings cannot be applied to (java.lang.Integer)
[javac] if (Strings.isEmpty(getAnnotationVwId().getCaptureId()))
[javac] ^
[javac] /Users/vctemp/Development/EchoStorm/workspace/adlib_persistence_serivce_generator/src/action/com/echostorm/adlib/advis/persistence/beans/crud/AnnotationVwHome.java:34: isEmpty(java.lang.String) in org.jboss.seam.util.Strings cannot be applied to (java.io.Serializable)
[javac] if (Strings.isEmpty(getAnnotationVwId().getAnnotationTextIndex()))