FYI:

This is a cross-post from the XDoclet user list.

Is this a bug or am I wrong!?

Ove Ranheim
[EMAIL PROTECTED]


-----Original Message-----
From: Ove Ranheim 
Sent: 21. august 2002 10:44
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] CMP field NOT NULL



This is not for ejb-jar.xml, but for the jboss specific dd;
jbosscmp-jdbc.xml. The objective is to tell jboss which fields are
nullable or not.

I've found the error prone, and to be clear on the issue; 

1. if you do NOT use an DTD with for the jbosscmp-jdbc dd you can write

          <cmp-field>
              <field-name>uidSection</field-name>
              <column-name>uidSection</column-name>
              <jdbc-type>CHAR</jdbc-type>
              <sql-type>CHAR(64)</sql-type>
              <not-null>true</not-null>
          </cmp-field>

and this will cause the construct of a field that cannot be null.


2. if you DO use an DTD it will raise an exception in JBoss 3.0.1.


Reason is, the DTD and the jboss validator needs a fix in it's DTD at
line 206 from;

<!--
The cmp-field element contains the configuration of a cmp-field.
-->
<!ELEMENT cmp-field (field-name, read-only?, read-time-out?, 
         column-name?, not-null?, ((jdbc-type, sql-type) | (property+))?
)>

<!--
If present the field will not allow a field value.
-->
<!ELEMENT not-null EMPTY>

to

<!ELEMENT not-null (#PCDATA)>


Hope this clearifies the problem.

Ove

-----Original Message-----
From: Andrew Stevens [mailto:[EMAIL PROTECTED]]
Sent: 21. august 2002 01:22
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] CMP field NOT NULL


A wise old hermit known only as Ove Ranheim <[EMAIL PROTECTED]> once said:

> How do I set a CMP field to be NOT NULL?

No idea.  What does the EJB spec say to put in the deployment
descriptor?


Andrew.


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=urceforge1&refcode1=3390
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to