This content has been marked as final.
Show 3 replies
-
1. Re: SELECT COUNT(*) before every INSERT? why?
stuermer_g Aug 12, 2003 9:37 AM (in response to rakhbari)I think you got it. It's just to verify that the Dataset is unique.
If you don't use the same PK in the Database and in the EJB you won't get an error if you insert the dataset. I know that sounds a little bit strange but perhaps there are situations where it can be useful.
Best regards
Peda -
2. Re: SELECT COUNT(*) before every INSERT? why?
samart Aug 12, 2003 10:30 AM (in response to rakhbari)I think its strange behavior too.
turn it off :
<jbosscmp-jdbc>
java:/datasourcedatasource>
<datasource-mapping>Sybase</datasource-mapping>
<entity-command name="no-select-before-insert"/> -
3. Re: SELECT COUNT(*) before every INSERT? why?
mkotsbak Oct 27, 2003 11:39 AM (in response to rakhbari)This option seems to be added in jboss 3.2.x (as I can see in the DTD)