Commit Graph
69 Commits
Author SHA1 Message Date
Paul Foxworthy 94c2bac40f reapplied Adrian's change r1460455
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1460652 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 13:26:42 +00:00
Paul Foxworthy 0079816733 Undid r1460637, should be two separate commits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1460647 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 13:14:10 +00:00
Adrian Crum cd9808ddb3 Enable FETCH and OFFSET keywords for Derby database.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1460455 13f79535-47bb-0310-9956-ffa450edef68
2013-03-24 20:23:27 +00:00
David E. Jones 358f61fdbc Added ext-test and ext-demo to all datasources so that install without specifying readers behaves as expected (ie loads all readers)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1376379 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 06:09:36 +00:00
Hans Bakker 14f4e5a292 reverted recent security file changes revisions: 1350847,1350843,1350840,1348534,1347908,1347213,1346264, need more investigation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351206 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 04:36:20 +00:00
Hans Bakker a8040d7806 security should be loaded first
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347213 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 00:04:08 +00:00
Hans Bakker fff7f99081 introduced a new data-reader : 'security'
Security is now by default not loaded because not part of seed anymore this will make all component hidden and not accessible .
It is still loaded as part of the reader 'demo'

to load the security files:
./ant load-readers -Ddata-readers=security

Now it is possible to load only a selection of the security files in your hot-deploy component as follows:

<entity-resource type=data reader-name=seed loader=main location=../../framework/security/data/SecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../framework/webtools/data/WebtoolsSecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../applications/party/data/PartySecurityData.xml/>

This will enable only standard groups, the party and the webtools application.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346255 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 06:37:06 +00:00
Jacques Le Roux baa73733d2 Where it shows that maintaining help is not that easy. Unlike Javadoc you don't have under eyes when changing things
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343030 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:41:13 +00:00
Jacques Le Roux 9d2a060d23 Closes OFBIZ-4663 ERROR in log file when starting OFBiz, debug-xa-resources is commented in entityengine.xml
About the issue I got. I simply forgot to update my XML catalogs after having changed the OFBiz working copy reference name.

Thanks to Paul Piper for his help about this last point, by pointing about XSD reference.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1234014 13f79535-47bb-0310-9956-ffa450edef68
2012-01-20 17:19:47 +00:00
Jacques Le Roux f02692f632 A patch from Philippe Mouawad "Set TransactionUtil#debugResources default value to false and make it configurable" https://issues.apache.org/jira/browse/OFBIZ-4293
debugResources is true which creates a DebugXAResource (that creates an Exception) , it should be false and made an option for debuging

jleroux: see comments in Jira 4282 for more

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1226234 13f79535-47bb-0310-9956-ffa450edef68
2012-01-01 11:27:10 +00:00
Hans Bakker b64da95ceb add 2 new tenant ant commands to load seed/demo data for a specific tenant only: './ant run-install-tenant -DtenantId' and './ant run-install-tenant-all' for all tenants in the tenant enttity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172989 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 06:23:02 +00:00
Jacques Le Roux 87f0cfbb36 I got caught by this typo on a production cluster:
XmlFileLoader: File file:.....framework/entity/config/entityengine.xml process fatal error. Line: 686. Error message: Invalid byte 2 of 2-byte UTF-8 sequence.

After having manually put back the line modified by an automatically applied patch, I got this  mis-representation. Not sure why, and anyway had no chances to think about it (certainly due to a difference on how UTF-8 was represented on these servers and on my machine - XP with Putty and SSH)

So I remove this weirdness to prevent future possible nervous crises ;o)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1104173 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 11:54:11 +00:00
Jacques Le Roux f90dcae786 Add an explicit comment about use-indices-unique="false" which is needed because of Derby bug with null values in a unique index
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1099727 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 09:09:39 +00:00
David E. Jones 3b20b9c06f Reversing accidental commit in rev 1072292
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072301 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 10:38:13 +00:00
David E. Jones 2d28cc3d66 VUA-429 full implementation to add a path through the screens for creating a sales order for a contact and add a customer for the contact in the process
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072292 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 10:13:50 +00:00
Jacques Le Roux c2ea70f355 A slightly modified patch from Pierre Smits "Enhancement to create new tenants easier" (https://issues.apache.org/jira/browse/OFBIZ-3971) - OFBIZ-3971
This patch enables users to create new tenants via the ANT process.
Users can enter:
    * Tenant ID
    * Tenant Name
    * Data to load on creation of the tenant db (e.g.seed, seed-ext, demo)
    * Database Platform (Derby, MySQL, Oracle, PostgreSQL) remark: You can NOT mix platforms)
    * IP address of the database (you can add a port if needed)
    * User-ID for the database
    * Password for the database

Based on the data provided the process will:
    * Create a new row in the Tenant table
    * Create a new row in the TenantDataSource table
    * Create new tables in the new tenant database and fill with initial data (seed, seed-ext, demo)
    * Create a new admin id for the tenant (based on Tenant ID followed by '-admin')
    * Set the initial password for the tenant admin id (initial 'ofbiz', must be changed on first login)

This patch has been tested against: Derby, MySQL, PostgreSQL. This has not been tested against other db platforms.

Prior to running the ANT task the user
    * has to modify 'general.properties' in framework/common/config to reflect multi tenancy (multitenant=Y)
    * has to have appropriate db driver(s) in place
    * has to create the databases first in function of the entityengine.xml datasource-names (not for Derby, applicable for MySQL and PostgreSQL.)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065144 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 23:35:01 +00:00
Jacques Le Roux c04f9410df Resolve issues from r985624 (only ReadCommitted for HSQL should have been changed)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985639 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15 09:30:38 +00:00
Jacques Le Roux 9315590611 Checking entityengine.xml I found that, by default, only HSQL uses isolation-level="ReadUncommitted" while all others use
isolation-level="ReadCommitted". Since its version 2.0, HSQL now supports ReadCommitted. 

http://en.wikipedia.org/wiki/HSQLDB


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985624 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15 07:59:16 +00:00
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