Bugs item #788501, was opened at 2003-08-14 03:31
Message generated for change (Comment added) made by ejort
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=788501&group_id=22866

Category: JBossServer
Group: v3.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Paul W. Ward (pward)
>Assigned to: Adrian Brock (ejort)
Summary: Setting of non-PK fields in BMP ejbCreate ignored

Initial Comment:
This is a 3.2.1 server built from the source release on 
sourceforge...

I have a BMP entity whose ejbCreate executes the 
following prepared statement.

INSERT INTO myTable(myPK,myNonPK) VALUES(?,?)

JBoss seems to be ignoring the value that is specified 
for myNonPK.  The database record does show the 
correct value, but the entity returns null for myNonPK.  I 
have worked around this issue by setting values in the 
postCreate.  However, I would like to use a stored 
procedure to create the record and am afraid I would 
end up with the same problem there.

I am definitely not an expert on the J2EE spec, so 
please feel free to slap me around if this is how it's 
supposed to work.

----------------------------------------------------------------------

>Comment By: Adrian Brock (ejort)
Date: 2003-08-14 18:15

Message:
Logged In: YES 
user_id=9459

Consider yourself slapped around :-)

With BMP you are responsible for maintaining the persistent
state. If the entity bean is returning null it is your code
that is
doing it or not following the BMP contract.

Regards,
Adrian

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=788501&group_id=22866


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to