Hello All, I just removed "implements Serializable" from both SRecordMeta and SFieldMeta. As expected, all the unit tests passed. I strongly suspect that we...
Hello, I just find a bug in the method removeRecord from the SDataSet object. It seems that each SRecordInstance in the dataset have a updateListIndex ...
damien hostin
damien.hostin@...
Feb 16, 2009 10:31 am
1714
Hello Damien, Yes, I think that you have found a bug. It will only arise in practice if you actually call removeRecord. Normal operations such as Flush and...
I've just implemented the fix with setting null the removed record in dirty list. The only thing it implies is to check if records obtained from ...
damien hostin
damien.hostin@...
Feb 17, 2009 2:27 pm
1716
I removed seriability on the meta, and it doesn't break our application. But we don't directly use serialization. Last year (or even before), a colleague try...
damien hostin
damien.hostin@...
Feb 17, 2009 2:59 pm
1717
Hello Damien, The checks "if records obtained from SDataSet.getDirtyRecords are not null" should already be there, but please check the checks. Note that...
Hello Damien, I would doubt that Tomcat tries to serialize session rather than just leaving it in memory, at least in the normal case. But it should work if...
berglas@...
Feb 19, 2009 12:19 am
1719
... Dr Anthony Berglas, anthony@... Mobile: +61 4 4838 8874 Just because it is possible to push twigs along the ground with ones nose does not...
Hello, SDataSet.removeRecord now call instance.setDirty(false), and it works fine. I don't really see why it would be interesting to move removeRecord to ...
damien hostin
damien.hostin@...
Feb 20, 2009 10:57 am
1721
Hello, Actually, we now get error when tomcat tries to serialize the sessions. Before modifying seriability, we got error when deserializing. But I must check...
damien hostin
damien.hostin@...
Feb 20, 2009 11:06 am
1722
Thanks for that. I cleaned it up a little. Removed SRecordInstant.dirty which is now redundant. removeRecord is now just public void...
Of course, cannot remove SRecordInstant.dirty because of deprecated instances detached from DataSets. Reverted + comment! Can we get rid of this, or are you...
Hello, I check our code, we aren't using SDataSet.attach / createDetachedInstance anymore. But isDirty() on SRecordInstance is still used. Even if in some case...
damien hostin
damien.hostin@...
Feb 23, 2009 2:23 pm
1725
Good to hear that your problems are resolved. I have removed the deprecated attach(record) and the associated .dirty flag. They could potentially be useful in...
It seems to work... ! Damien ... -- HOSTIN Damien - Equipe R&D Tel:+33(0)4 63 05 95 40 Société Axège 23 rue Saint Simon 63000 Clermont Ferrand www.axege.com...
damien hostin
damien.hostin@...
Feb 25, 2009 5:11 pm
1727
I need to be able to duplicate a record, assign it new key values using the generator, then modify a few of the other (non-key) fields. I'm updating to version...
I know we all hate XML files, and after my brief interlude with Hibernate I understand why. But I do have a need to be able to specify some column names at run...
Welcome back. Is SFieldScalar.isPrimaryKey what you want? (SimpleORM 3.0 is more focused on columns than references, which simplifies it.) In general, all...
berglas@...
Mar 4, 2009 7:34 am
1730
This is exactly the sort of thing that is easy to do with SimpleOrm, but not reflective tools like Hibernate. SubTypeTest provides an example of the sort of...
berglas@...
Mar 4, 2009 7:38 am
1731
Hello All, I have added a new package, SimpleServlets, which can be checked out from subverson. From the web page:- SimpleServlets A very simple environment...
The reason that SimpleORM takes a DataSource parameter instead of a JDBC Connection was so that it could open a second connection as a way to generate sequence...
Hello Franck You have been busy! There are many things going on here. I would generally prefer that we do one thing at a time, check it in, review and think,...
Hello Franck, Now the big question -- is implementing full joins a good idea in the first place? I have only spent a couple of hours working through your join...
PS. Outer joins are all about returning nulls for missing records. I could not see anything in retrieve record to do that. Do we have a test case that...
Hi Anthony, I'll read carrefully your mails today... ... We have a test the other way around, JoinQueryTests.leftJoinTest(), that retrieve Depts plus their...
Hi Anthony, I have made quite a few modification following your remarks. See my comments below... ... Ok, I renamed Table to SAlias. I'll use SAlias for Table...
Hi again, thanks for your comments ... I think this problem is handled by the rsindex part. See my other mail. ... Yep. ... I know that. I am also still...
Hello Franck, I like your examples. So, it looks like the full joins with aliases are going in. The advantage of subselects is that aliases are easy -- no...
Hello Franck, I have reread the code and thought about the problem and I really cannot see why there is a Join class separate from the SAlias class. The data...