I'm using JBoss. The unknownPK is not the problem. Autoincrement works fine and I don't have getters and setters for these fields. The problem is, that xdoclets generates a PKClass java.lang.Object for me.
However, maybe you understand what I mean, when I post the code. Not making it too big, I left out the parts, that are not really interesting... So here it is:
/**
* The Employee Entity Bean handles the information of an employee.
* @author Karsten Jahn
* @version 1.0
*
* @ejb.bean
* name = "Employee"
* display-name = "EB_DataBase - Employee: Employee"
* view-type = "local"
* type = "CMP"
* cmp-version = "2.x"
* local-jndi-name = "ejb/foo/employee/Employee"
* reentrant = "false"
* * @ejb.pk class = "java.lang.Object"
insert generate="false" since true is by default
* @jboss.unknown-pk * class = "java.lang.Integer"
* auto-increment = "true"
* column-name = "employeeid"
* field-name = "employeeID"
* sql-type = "INTEGER"
* jdbc-type = "INTEGER"
*
* @jboss.entity-command name = "mysql-get-generated-keys"
*/
public abstract class EmployeeBean implements EntityBean {
[...]
}
Kindest regards, Damjan S. Vujnovic
------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user