Be honest ;) Did you modify the generated by Middlegen sources?

Steven Nakhla wrote:
First, thanks to all who responded regarding my CMR problems with XDoclet/JBoss. As advised, I have used Middlegen to automatically create my entity beans from my database table. These beans represent a person, and a street address. However, now I'm receiving a different error from what I received before. I have run XDoclet on the middlegen-generated files and received the appropriate interfaces, classes, etc. I have a simple test client that creates a street address, and then attempts to create a person and assign that address to the person. However, when I try and assign the address I get the following exception:


javax.ejb.CreateException: Could not create entity:java.sql.SQLException: General error, message from server: "Column 'address_id' cannot be null"

I have attached the beans generated by Middlegen, as well as my test client, and would REALLY appreciate if someone could take a look at them and see if they can figure out what I'm doing wrong. For reference, I'm using JBoss 3.2.2 and MySQL 4.0 on the backend. Thanks in advance for any help you can give. I've been racking my brain for the last 3 weeks on this, trying to get it to work. I'm getting so much closer but there's still the matter of this exception to overcome.



Steve Nakhla

------------------------------------------------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard <http://antispam.yahoo.com/whatsnewfree>




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to