Sounds reasonable however something during compiling with Java 5.0 the
compilation of the related value object blows up :-(
[javac]
C:\opt\eclipse\workspace\test\build\generate\test\ejb\value\PersonValue.java:80:
Object() in java.lang.Object cannot be applied to (java.lang.Integer)
[javac] pk = new java.lang.Object(this.getId());
| /**
| * @ejb.bean
| * name="Person"
| * display-name = "PersonEB"
| * description = "Client and Employee humans table"
| * type="CMP"
| * cmp-version="2.x"
| * jndi-name="ejb/test/Person"
| * local-jndi-name="ejb/test/PersonLocal"
| * view-type = "local"
| *
| * @ejb.pk
| * class = "java.lang.Object"
| * generate = "false"
| * ---
| * @jboss.unknown-pk
| * class = "java.lang.Integer"
| * column-name = "id"
| * auto-increment = "true"
| * sql-type = "INTEGER"
| * jdbc-type = "INTEGER"
| *
| * @jboss.persistence
| * table-name="person"
| * read-only = "false"
| * create-table = "false"
| * remove-table = "false"
| * pk-constraint = "false"
| *
| * @jboss.entity-command
| * name="postgresql-fetch-seq"
| *
class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCPostgreSQLCreateCommand"
| *
| * @ejb.finder
| * method-intf="LocalHome"
| * query="SELECT OBJECT(o) FROM Person o"
| * result-type-mapping="Local"
| * signature="java.util.Collection findAll()"
| *
| * @ejb.value-object
| * match="*"
| * name="Person"
| *
| */
|
| public abstract class PersonBean extends BaseEntityBean implements
EntityBean {
|
| /**
| * @ejb.persistence-field
| * @ejb.persistence
| * column-name="id"
| * jdbc-type="INTEGER"
| * sql-type="INTEGER"
| * @ejb.pk-field
| * @ejb.interface-method
| * @jboss.persistence
| * auto-increment = "true"
| */
| public abstract java.lang.Integer getId();
|
| /**
| * @ejb.interface-method
| */
| public abstract void setId(java.lang.Integer id);
|
| Removing the VO from the code has it compiles correctly however that does
not sound like an ok solution to me :-)
|
| Any hints what i'm forgetting here? Many thanks in advance.
|
| Wessel de Roode
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872444#3872444
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872444
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user