Oh, sorry for no subject, I kinda forgot...
First, I want to point out that those were two questions, not options
Rickard (but I guess I have to blame myself for not being clear).
As to you question, this is the problems I found with SQL Server (and
Access).
First, in storeEntity (I'm referring to JAWSPersistanceManager now) you
make a cast from java.util.Date to java.sql.Date. This is not liked by the
VM and I get a ClassCastException. My workaround was to create a new
java.sql.Date(java.util.Date.getTime()).
Second, in the update method (cannot rememeber the name, I don't have the
code here, but somewhere around line 700), you declare an ArraList called
dirtyFields to count how many
updated fields there are. This list is however never used and therefore
the size is always zero.
Third, in the same update method you compare two arrays, one called
currentState and one oldState (I think). The problems is that if a field
has value null, then you call the equals method on an object that is null:
null.equals(somthing).
This produces a NullPointerException. My workaround was to add a check if
the currentState is null.
To clarify my first question in the previous letter, can I use your code,
make some changes and redistribute under a different class name (as I
still want to include the original class).
Fredrik...
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]