Hi, In your implementation (v.3.2), you have put for SDriverHSQLH2 protected OffsetStrategy getOffsetStrategy() { return OffsetStrategy.JDBC; } This causes an...
Hi, Regarding the errors I got with Enum(s), it is because I ran the tests on a build I got from svn (rev806). In this revision, "writeFieldValue" was not...
Hi, I found the timeout parameter for locks, so all the tests run correctly now. The timeout can be set by adding the parameter to the jdbc url, or by issuing...
Hello Harry, Please do check out from subversion, not the zipped versions. I only create the latter occasionally, and you are supporting a new database which...
Hello Anthony, I can only check out from subversion at home, because at work our firewall does not allow subversion connections. And I come home late, with...
Hello Harry, Subversion works on normal ports (80 and 443). I have used the https to access it from behind nasty corporate firewalls. So unless they ...
I'm getting a compilation error when I try to compile SimpleORM using Java 5. The error is SQueryExecute line 100: "The method copyOf(SfieldScalar[], int) is...
I have just released version 3.3, which fixes the Java 1.6 dependency in the join processing. Big oops, now always test with 1.5 Also cleaned up imports from...
Hello , I have usecase where I need to check if entity was changed or not. Entity should report isDirty as false also if the same values/references was set on...
Hello Tibor, I have added your changes to the code. They are a slight improvement but they do not fix your obscure but valid bug, nor would I expect them to. ...
I was working against branches/simpleorm-3.2, not against trunk. I did fresh checkout of 3.2 and tried my test again. I don't know what I screwed up before,...
I am confused as to what exactly you have been testing. I think the case you have below has always worked. But I have gone in and added some extra tests along...
I'm new to SimpleORM and I'm trying to figure out how to express a query like this... SELECT * FROM CUSTOMER WHERE NAME LIKE 'SM%' OR NAME = 'Jones' FYI, I...
For now you just say new SQuery...rawPredicate("NAME LIKE '?' OR NAME = '?", "SM%", "Jones")... Ie raw SQL fragment. The goal of SQuery is to cover the 90% of...
Anthony & Melissa Ber...
berglas@...
Oct 20, 2008 7:28 am
1670
For now you just say new SQuery...rawPredicate("NAME LIKE '?' OR NAME = '?", "SM%", "Jones")... Ie raw SQL fragment. The goal of SQuery is to cover the 90% of...
Hello there. I used SimpleORM for some projects a few years ago, but I really wanted to use POJOs, primarily because of the sheer volume of objects (and...
... Oops, mistype. Obviously I'm asking about creating Plain Old Java Objects from SimpleORM objects, not from Hibernate objects. I've given up on Hibernate....
Hello John, It is rarely a good idea to use POJOs. If you implement get and set methods then the simpleORM records will look just like POJOs externally. ...
Anthony & Melissa Ber...
berglas@...
Oct 24, 2008 7:55 am
1674
Contributions are always welcome. But they need to be clean, and most importantly they need to have a test case. (Maybe by updating the existing test cases.)...
Thanks for the explanation and example. You are right, in terms of CPU cycles POJOs would be slower in my system. So really it comes down to memory....
... Here is my addition to SRecordMeta, for the old version of SimpleORM. I haven't ported it to (or tested it with) the new version. As you can see, it's...
I think that SFieldScalar.isPrimaryKey will do what you want, without a search. (keySFieldMetas is just a cache.) Regards, Anthony ... Dr Anthony Berglas,...
Is there no notion of a column's default value is SimpleORM? For example, when I call SDataSet.create() or SSessionJdbc.create(), I'd like the SRecordInstance...
Hi, you're not missing anything, and a default value would indeed be a valuable feature. I think we could think of it, to find where it would best fit : ...
Hmm. Defaulting can mean a number of things. 1. Values to be set to the fields when a record is initially created. 2. Values to be written to the database...