Hi!

Fredrik Borgh wrote:
> 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.

These are not MS-SQL/Access specific things, but bugs, and should be
fixed in the current code.

> 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).

Nope. This is prohibited by the GPL. All changes/enhancements go back to
jBoss. 

If I made a cool clustering plugin, wouldn't you want to have it? ;-)
Same way, if you fix these bugs, I would want those fixes as well.

/Rickard

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.ejboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to