Commit Graph
51 Commits
Author SHA1 Message Date
Adrian Crum 3dd7ca4f70 Removed Cloudscape support from the entity engine. Cloudscape has been replaced by Apache Derby.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959695 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 15:28:17 +00:00
Adrian Crum d7a22a1b35 Changed Advantage database setting in entityengine.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958758 13f79535-47bb-0310-9956-ffa450edef68
2010-06-28 21:54:48 +00:00
Jacques Le Roux f65c6e12bf A patch from Bob Morley "Support for order by nulls first/last " (https://issues.apache.org/jira/browse/OFBIZ-3740) - OFBIZ-3740
This patch provides the fundamentals to resolve an issue where the sorting of null values were inconsistent (sometimes sorting first and other times sorting last). Specifically, this patch allows one to create an order-by clause via any of the order-by elements of "-myField NULLS LAST" where this text parses out the - (as descending) and the "nulls last".

Since not all databases support the "nulls" argument on an order by clause (it was introduced as part of the OLAP support specification) , our entity-engine.xml file allows each data source to indicate if it has this support. If the support does not exist and nulls first/last is specified, the sql that is generated uses native sql to simulate the nulls first/last intent. At this time, the derby, postgres, and oracle databases are marked to use the nulls first grammar.

Right now, if you do not specify "NULLS XXX" in the field-name for the order-by it makes no change whatsever (naturally this assumption could be changed to have a default).

It should be noted, that my intent here was ultimately to "properly" model the order by into something whose xml representation could look something like ...
<entity-order-by field-name="fieldName" ascending="true" nulls-first="true" />

Divesh Dutta added a comment - 07/May/10 01:44 AM HI Bob, This patch works as expected for derby, postgres, and oracle databases as you have already mentioned. Cant we have some generic solution which supports all the databases. Or we can have some conditional code, where we can check which datasource is being used, and then generate the sql accordingly. Please let me know your views on this.

Bob Morley added a comment - 07/May/10 08:07 AM
Hi Divesh,
I added a more detailed description in the forum thread; but in brief this is a generic solution which supports all databases which generates the sql accordingly. What this patch does not do is apply a standard default order for all databases; it just adds support for one to dictate how they want the nulls sorted.
For example, when one sets the order-by they can set it to "lastName DESC NULLS FIRST" which should apply to all databases.


The thread Bob was referring above ends at http://markmail.org/message/47z7fwtawehuem6b


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950901 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 07:39:19 +00:00
David E. Jones 8e3edae07f Merged multitenant20100310 branch into the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927271 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 04:42:26 +00:00
David E. Jones 7ea17c8489 Changed back to derby after accidental change to mysql in last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916782 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 18:42:42 +00:00
David E. Jones f67ff5da49 Changed to not try to do a distinct count by a specific column, which was introduced in rev 897605, as it seems to cause a number of problems and is a feature that probably isn't used much since it was introduced about a month ago; reintroducing this feature will require additional effort to resolve these
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916781 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 18:41:11 +00:00
Jacques Le Roux e8f9dec801 Changed DBCP parameter name at Jacopo's request (consistent with OFBiz style)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817194 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 08:48:49 +00:00
Jacques Le Roux e8874a4bf9 Allow to set timeBetweenEvictionRunsMillis for each DB type from entityengine.xml. Keep default value at 600000 (10 min)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817082 13f79535-47bb-0310-9956-ffa450edef68
2009-09-20 19:14:41 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Jacques Le Roux e60a3fa0d1 Info about max_connections in postgresql.conf (related to pool-maxsize)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@782927 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09 09:25:52 +00:00
Jacques Le Roux 46038493c4 Revert r766443 commited by accident
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766446 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 11:06:54 +00:00
Jacques Le Roux 59dcd48d1b This was a commit error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766443 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 10:27:47 +00:00
David E. Jones ba72c5edf8 Reverted change to prefix all sequenced IDs; new change to ofbiz extensions of UEL from Adrian should fix issues there, and this isn't needed in general
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765067 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 07:15:45 +00:00
David E. Jones b502c14948 Small change to have a prefix for all sequenced IDs by default
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764947 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 20:50:23 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
David E. Jones b2ef316f79 Added more comments about seed vs seed-initial
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@733627 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 05:19:55 +00:00
David E. Jones 21effbe893 No need for a delegator example for each type of datasource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698432 13f79535-47bb-0310-9956-ffa450edef68
2008-09-24 05:57:15 +00:00
Jacques Le Roux 36250310e6 A patch from Philip W. Dalrymple III "Patch to add support for Postgresql with TEXT type fields" (https://issues.apache.org/jira/browse/OFBIZ-1920) OFBIZ-1920
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@697967 13f79535-47bb-0310-9956-ffa450edef68
2008-09-22 20:09:35 +00:00
Jacques Le Roux 4f4b4e5e43 Revert previous change done unintentionnaly while testing Subclipse 1.4 new interface (so far I preferred the old one...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676279 13f79535-47bb-0310-9956-ffa450edef68
2008-07-13 08:45:11 +00:00
Jacques Le Roux 80c57126a0 New French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676274 13f79535-47bb-0310-9956-ffa450edef68
2008-07-13 08:21:54 +00:00
Jacques Le Roux e791983beb Comment outside the test definition to avoid conflicts (when the datasource has been changed for intance)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637382 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 10:14:34 +00:00
Jacques Le Roux 5de5f59bc4 More complete comment and on another line to avoid conflicts (when the datasource has been changed for intance)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637381 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 10:11:07 +00:00
Jacques Le Roux f28dfd5b32 A short comment to prevent issues with run-tests when the datasource is not the same than for run-install
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637312 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 00:44:45 +00:00
David E. Jones edafa04bd7 Added seed-initial data set and changed all JobSandbox seed data entries to be in this instead; allows for reloading of seed data withows for reloading of seed data without redundant jobs scheduled
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627824 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 18:26:44 +00:00
David E. Jones d16b818a2a Fixed bad XML from recent commit in r594077
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594207 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 16:44:01 +00:00
Jacques Le Roux 422ebdc44c From Derryck Welas's comment in "Firebird 2.0 config improvement" (https://issues.apache.org/jira/browse/OFBIZ-1012) OFBIZ-1012
I kept as comment old jdbc and login/pwd configuration (seems to be not platform independent)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594077 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 10:34:22 +00:00
David E. Jones 1249d1472d Small configuration change to move the bi/olap stuff to a separate database by default in order to avoid startup warnings; note data by default in order to avoid startup warnings; note existing databases with data in these tables will need to be moved to the olap db
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589980 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 08:08:02 +00:00
Andrew Zeneski d04c0e7522 changed connection pool to be DBCP by default now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586666 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 04:47:11 +00:00
Jacopo Cappellato a188d85806 First version/poc (proof of concept) for an integrated framework for business intelligence in OFBiz.
For now everything is in a separate specialpurpose component to facilitate the community review but as soon as everything will be consolidated the component will probably disappear (absorbed by the existing framework/applications components).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@584727 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 10:55:07 +00:00
Andrew Zeneski 4202c6ecac refactored entity engine factory and transaction factories to allow full configuration of managed connections through entityengine.xml. changed all connection factories to be instance objects (singleton pattern) implementing the new ConnectionFactoryInterface interface.
Two working connection factories are included now, Minerva and DBCP. 

Minerva is still default until more testing can be done on DBCP; to change this use the DBCPConnectionFactory instead of MinervaConnection factory (see entityengine.xml)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575396 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 18:32:31 +00:00
David E. Jones a2b303b281 Added ext-demo data loader, plus improved comments about them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550881 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 17:54:57 +00:00
David E. Jones eae64b0e30 Added ext-test data reader for ext data files that are used for testing only and not for production; the main reason for using this instead of demo is that it is often necessary for custom installations to make sure the tests will run without the demo data which is not generally used in production; so, production gets extseed (seed, ext) and pre-production testing gets exttest (seed, ext, ext-test)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550848 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 16:43:56 +00:00
David E. Jones 42c83d59a0 Change to adjust for Derby bug with null values in a unique index; this setting just turns off the unique part of maually declared indices when set, as it is now by default for Derby; now the seed data loading and other things will work though WARNING: unique indices will not work with Derby; we don't use these much but we need to watch for it in testing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@544640 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 21:24:21 +00:00
Si Chen bdd3ed9f4b fix last commit of oracle alias-view-column
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539645 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 00:06:37 +00:00
David E. Jones 856a924ee3 Reversed a couple of changes that appear to have been committed by accident
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539643 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 00:04:03 +00:00
Si Chen f47068f164 alias-view-columns must be turned off for oracle to work properly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539588 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 20:15:52 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
David E. Jones 20b0c6c7b3 Changed default connection pool size to 250; our default http listener size in ofbiz-containers.xml is 200 and the default service engine pool size is 15, plus leaving a few extras
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536644 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 20:05:58 +00:00
David E. Jones 0f3eb33a58 Based on testing done by Anil Patel, setting alias-view-columns=false for MS SQL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530183 13f79535-47bb-0310-9956-ffa450edef68
2007-04-18 22:11:49 +00:00
David E. Jones dd8b617c04 Changed alias-view-columns from true to false for advantage based on report of it not working right for Advantage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530160 13f79535-47bb-0310-9956-ffa450edef68
2007-04-18 21:16:15 +00:00
David E. Jones 50b7606b26 Changed alias-view-columns setting for MySQL, now that this setting is being honored it seems that the new version of MySQL has a problem with the old setting; thanks to various for reporting it, including in OFBIZ-895
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@529354 13f79535-47bb-0310-9956-ffa450edef68
2007-04-16 18:48:09 +00:00
David E. Jones b5c39c9c24 Changed postgres config to not alias columns in views
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@528862 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 19:25:35 +00:00
David E. Jones 93076873b6 A fairly dramatic change required because the DatasourceInfo stuff was being mostly ignored for most of the sql generation code, especially in the view entity stuff; fixing this resulted in a problem with derby requiring adding the alias-view-columns=false attribute to the datasource element in the entityengine.xml file; in any case, the somewhat tricky and funny but useful option of using a view-entity in a sub-select is now working properly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@528801 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 13:01:51 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Andrew Zeneski 41b3456807 removed entity group org.ofbiz.odbc; can be replaced with the shipext package (available soon)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496784 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 17:26:20 +00:00
Jacques Le Roux 4c9c8bd33c A patch from Cameron Smith : Entity Engine: entityengine.xml: Default MSSQL JDBC settings incorrect (http://issues.apache.org/jira/browse/OFBIZ-332)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@451294 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 13:53:14 +00:00
David E. Jones 328b9943ba Whoops, set default to postgres in last commit; have changed back to derby where it should be out of svn
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@431162 13f79535-47bb-0310-9956-ffa450edef68
2006-08-13 11:22:10 +00:00
David E. Jones b9c603e662 Added option to use binary type for blobs, configurable on the datasource element in entityengine.xml; this is mainly for Postgres and is necessary to use the BYTEA type for blob; I have tested this and it appears to be working fine; this should fix Undersun Jira #OFBIZ-334
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@431161 13f79535-47bb-0310-9956-ffa450edef68
2006-08-13 11:19:12 +00:00
David E. Jones 30d676aa67 Removed read-data elements from localderbyodbc datasource as they don't really apply to it
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@424170 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 04:31:18 +00:00
Jacopo Cappellato c2eb35ac38 License change from MIT to ASL2.0 for the files of entity and entityext components not modified by Adam Heath.
Thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87).


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423883 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 10:57:51 +00:00