Got it fixed!
The trick is to declare the primary key in the @ejb.bean tag. and set the
correct object-specs like Integer
| /**
| * @ejb.bean
| * name="Address"
| * display-name = "AddressEB"
| * description = "adres tabel"
| * type="CMP"
| * cmp-version="2.x"
| * jndi-name="ejb/test/Address"
| * local-jndi-name="ejb/test/AddressLocal"
| * view-type = "local"
| anonymous wrote : * primkey-field = "id"
| *
| * @ejb.pk
| * class = "java.lang.Integer"
| * generate = "false"
| *
| *
| * @jboss.persistence
| * table-name="address"
| * 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"
| *
| * @jboss.unknown-pk
| * auto-increment = "true"
| * column-name = "id"
| * jdbc-type = "BIGINT"
| * sql-type = "SERIAL"
| * class = "java.lang.Object"
| *
| * @ejb.finder
| * method-intf="LocalHome"
| * query="SELECT OBJECT(o) FROM Address o"
| * result-type-mapping="Local"
| * signature="java.util.Collection findAll()"
| *
| *
| * @ejb.value-object
| * match="*"
| * name="Address"
| *
| */
|
| public abstract class AddressBean extends BaseEntityBean implements
EntityBean {
|
| /**
| * @ejb.pk-field
| * @ejb.interface-method
| * @ejb.persistence
| * @jboss.persistence
| * auto-increment = "true"
| */
| public abstract Integer getId();
| .......
|
Now it has a clean compile and deployment.
Tomorrow i'll check out if CMR is working also..
Wesssel de Roode
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872463#3872463
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872463
-------------------------------------------------------
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