ROTECTED]>
To: "Tristan Donaldson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, July 14, 2001 6:18 PM
Subject: Re: [JBoss-user] NOT NULL constraint
> Hi Tristan,
>
> Thanks for your help, but I already developed my bean this way. We managed
> with Bur
Hi Tristan,
Thanks for your help, but I already developed my bean this way. We managed
with Burkhard Vogel to find out what was the error and we discovered that
the version of Oracle I'm using (at least) interprets empty strings as NULL
values.
I don't know if this is a normal behaviour in Or
With that answer, then Lennart is right, there is certainly a bug since I've built my
bean like that (I just wanted to
be sure I haven't forgotten anything).
Could you please indicate me how to get the traces you need ?
Ludovic
--On Friday, July 13, 2001 15:40:29 +0200 Burkhard Vogel <[EMAI
: "Ludovic Orban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 13, 2001 2:33 PM
Subject: [JBoss-user] NOT NULL constraint
> Hi,
>
> If I've got a table like this one, in an Oracle repository:
>
>
> create table DEVICES (
> ID NU
Hi Lennart,
Hmmm... could be a bug in JBoss but I would not bet on that since I'm not sure if I
implemented correctly the bean. I
think we should first start with this before stating that I've hit a bug.
My question was "how should I implement the bean for it to correctly manage this
situatio
You need to provide the ejb with all of the information required for the
SQL insert statement in one operation. Hence it needs to be included in
the ejbCreate method.
Just create a new ejbCreate method which takes in both the primary key and
all of the "not null" fields.
eg:
public Object ejbC
MAIL PROTECTED]>
Sent: Friday, July 13, 2001 2:33 PM
Subject: [JBoss-user] NOT NULL constraint
> Hi,
>
> If I've got a table like this one, in an Oracle repository:
>
>
> create table DEVICES (
> ID NUMBER(32) not null,
> NAME VARCHAR2(255) not null
> );
> a
Hi,
If I've got a table like this one, in an Oracle repository:
create table DEVICES (
ID NUMBER(32) not null,
NAMEVARCHAR2(255) not null
);
alter table DEVICES add constraint DEVICES_PK primary key(ID);
Then I created an EJB that maps this table, but