Hello, Your code looks generally OK. But there is a lot to read through without some diagnostics. When you say it "does not work" what does it actually do?...
You found a bug. The bug is that no max size is specified for that VARCHAR. Some dbs accept this with sensible defaults (no limit) others with stupid defaults...
Anthony & Melissa Ber...
berglas@...
Jan 12, 2009 12:59 am
1706
Hello, I'm getting errors trying to deserialize some SimpleORM objects. (using serialization is necessary due to the the way I am integrating SimpleORM with...
Hello Franck, I had a very brief look through the change log. What happens if a record is created, with initial value on column C that is not later set. C is...
berglas@...
Jan 26, 2009 11:25 pm
1709
Hi Anthony, Thanks for reviewing my changes. I have added tests (in BasicTests) to test the various cases you mention. Everything seems to works fine... ... C...
Hello Carl, I did not write the serialization part. Looks like it needs a bit more thought. The page you refer to is rather unintelligible, but the idea that...
berglas@...
Jan 29, 2009 12:13 am
1711
Had a bit more of a look and think. The first question is whether the meta data should be serialized at all. Class info is not serialized for POJOs. In any...
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...