Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Weired problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weired problem" Watch "Weired problem" New topic
Author

Weired problem

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi all.
While I was creating my EJB system, I encountered the following problem :
I have a database server (MySQL) which has a table, this table has a PK and some other fields, these fields can be null (except ofcourse the PK field) -as I specified in the SQL creation command-
The following code generates : CreateException NAME field can't be null :


(I'm using JBoss 3.2.5)
Any ideas ??
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Using "this.name = name" instead of setName may be a problem. You didn't tell us if you're using BMP or CMP ....


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weired problem