int-modules-pgsql - Build # 2810 - Still Failing:
Check console output at https://ci.openbravo.com/job/int-modules-pgsql/2810/ to
view the results.
Committers since last success:
Changes for Build #2804
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes issue 39038: Hibernate warning appears when executing some ant tasks
src-db/database/lib/dbsourcemanager.jar
Asier Lostalé <asier.lost...@openbravo.com> null
related to bug 39014: fixed NPE
When processing alert rules with null filter clause
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Mark <markm...@gmail.com> null
Fixes issue 38861: Fixed Create Variants if ProductCharacteristic hasn't
values
An empty error message was shown in Create Variants if the Product
Characteristic
hadd Subset but not values because it was trying to iterate hover an empty
collection
in an incorrect way.
This solution includes:
- Save in a local variable the list with the Product Characteristics to be
processed
to avoid calling .list() method twice because it will repeat the same query
and it is
not needed.
- Avoid using a OBCriteria to get the list of ProductCharacteristicConf objects
defined
for the ProductCharacteristic is processing. This list is accessed directly
from the
object by calling the prCh.getProductCharacteristicConfList() method.
- If the processing ProductCharacteristic hasn't any configuration then it is
not executed
the section of code in charge of create the auxiliary information to be used
to create
the variants. In this way the exception throwed in the issue is not happening.
- Avoid to try to generate variants if there aren't any product characteristic
configuration.
The hasNext flag is initiallized with true if exists at least one variant to
be created, and false
in other case.
- Modified the do {} while block to use a while block and avoid create the
first variant if any exists.
src/org/openbravo/materialmgmt/VariantAutomaticGenerationProcess.java
Carlos Aristu <carlos.ari...@openbravo.com> null
related to issue 37064: fix error in export.database
Add a check to ensure whether the external connection pool class is present
in the classpath. This affects some ant tasks which are not able to load that
class, and use the default Hibernate connection pool instead
src/org/openbravo/dal/core/DalLayerInitializer.java
Asier Lostalé <asier.lost...@openbravo.com> null
fixed bug 39023: unneeded contention to count active alerts
Commit transaction after updating ad_session so that locks on ad_session are
not
hold while counting active alerts
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Asier Lostalé <asier.lost...@openbravo.com> null
fixed bug 39014: unneeded queries to ad_alert
When counting active alerts, a count query was executed per each accesible
alert rule. As part of the alert sql is dynamically generated based on rule's
filter clase, it is only necessary to execute different queries per each
different filter clause.
Now alerts are grouped by fiter clause to execute the queries.
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Asier Lostalé <asier.lost...@openbravo.com> null
related to bug 39014: code clean up
extracted different actions to separate methods
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes issue 37064: upgrade hibernate to version 5.3.2
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix error in ant tasks with JDK11 due to class loading issues with
JAXB
src/org/openbravo/dal/core/DalInitializingTask.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use LEGACY fetch style
Use LEGACY fetch style because test cases are failing with PADDED style when
assertions are enabled
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] GenericJDBCException are wrapped inside a PersistenceException
src-test/src/org/openbravo/advpaymentmngt/test/TestUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Can directly use OBquery.uniqueResultObject()
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Revert changes in getFieldSortIndex method
Keep using the deprecated getReturnAliases() instead of the Tuple query. This
is because at this point we want to avoid executing the query to retrieve the
aliases
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Legal information required for Byte Buddy library
legal/ASM_BSD_license.txt
legal/Licensing.txt
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Upgrade libraries for 5.3.2 version
lib/runtime/byte-buddy-1.8.12.jar
lib/runtime/classmate-1.3.4.jar
lib/runtime/hibernate-commons-annotations-5.0.4.Final.jar
lib/runtime/hibernate-core-5.3.2.Final.jar
lib/runtime/jandex-2.0.5.Final.jar
lib/runtime/jboss-transaction-api_1.2_spec-1.1.1.Final.jar
legal/Licensing.txt
lib/runtime/byte-buddy-1.8.0.jar
lib/runtime/classmate-1.3.0.jar
lib/runtime/hibernate-commons-annotations-5.0.3.Final.jar
lib/runtime/hibernate-core-5.3.0.Final.jar
lib/runtime/jandex-2.0.3.Final.jar
lib/runtime/jboss-transaction-api_1.2_spec-1.0.1.Final.jar
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Do not return a typed query with OBQuery.deleteQuery method
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor improvements in OBQuery.deleteQuery + new test case
src-test/src/org/openbravo/test/dal/DalTest.java
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Throw exception instead of logging and continue
src/org/openbravo/base/session/SessionFactoryController.java
src/org/openbravo/dal/core/DalSessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Declare the array of strings properly
src-test/src/org/openbravo/test/base/OBBaseTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Not need to initialize "newConnection" to null
src/org/openbravo/dal/core/SessionHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix copyright year
src/org/openbravo/dal/core/DalPropertyAccessStrategy.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Improve class javadocs
src/org/openbravo/dal/core/DalPropertyAccess.java
src/org/openbravo/dal/core/DalPropertyAccessStrategy.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Remove warning by setting the type of the query
src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Set default batch fetch style to PADDED
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use a query to retrieve the translation of the translatable
properties
src/org/openbravo/base/model/Property.java
src/org/openbravo/base/structure/BaseOBObject.java
src/org/openbravo/dal/core/DalMappingGenerator.java
src/org/openbravo/dal/core/template_main.hbm.xml
src/org/openbravo/dal/service/OBDal.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix failing query
src/org/openbravo/erpCommon/businessUtility/PriceAdjustment.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix invalid native query definition
src/org/openbravo/financial/ResetAccounting.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix error in test suite execution
Before finish the test we reinitialize the DalSessionFactoryController, this
is now required because if Hibernate detects that the Entity/Session manager
instance has been closed it does not allow to open new sessions with it.
src-test/src/org/openbravo/test/dal/HiddenUpdateTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use session.createFilter is deprecated
src/org/openbravo/base/structure/BaseOBObject.java
src/org/openbravo/dal/core/DalMappingGenerator.java
src/org/openbravo/dal/core/template_main.hbm.xml
src/org/openbravo/dal/service/OBDal.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
Javier Armendáriz <javier.armenda...@openbravo.com> null
[hb5.3] Replaced query parameter calls to use Query.setParameter()
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_ReconciliationEventListener.java
src/org/openbravo/costing/CostingMigrationProcess.java
src/org/openbravo/costing/CostingRuleProcess.java
src/org/openbravo/costing/FixBackdatedTransactionsProcess.java
src/org/openbravo/costing/InventoryAmountUpdateProcess.java
src/org/openbravo/costing/PriceDifferenceUtil.java
src/org/openbravo/financial/ResetAccounting.java
Javier Armendáriz <javier.armenda...@openbravo.com> null
[hb5.3] Replaced deprecated Query.setString() calls with
Query.setParameter()
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_ReconciliationEventListener.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/RoleInfo.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoComponent.java
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
src-test/src/org/openbravo/test/costing/utils/TestCostingUtils.java
src-test/src/org/openbravo/test/db/model/triggers/M_inoutlinetrgTest.java
src-test/src/org/openbravo/test/security/UserInfoSessionDataTest.java
src/org/openbravo/costing/CostAdjustmentProcess.java
src/org/openbravo/costing/CostingMigrationProcess.java
src/org/openbravo/costing/CostingRuleProcess.java
src/org/openbravo/erpCommon/ad_actionButton/MRPManufacturingPlanProcess.java
src/org/openbravo/erpCommon/ad_callouts/SL_BPartnerLocation.java
src/org/openbravo/erpCommon/ad_process/UpdateActuals.java
src/org/openbravo/event/OrderLineEventHandler.java
src/org/openbravo/financial/ResetAccounting.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] OBQuery.iterate() method is deprecated
src/org/openbravo/service/dataset/DataSetService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Remove undesired commit with testing code
src/org/openbravo/erpCommon/ad_forms/About.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/RecordID2Filling.java
src/org/openbravo/erpCommon/ad_forms/About.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/service/db/QueryTimeOutUtil.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor code improvements
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query + Tuple to retrieve the aliases
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
Javier Armendáriz <javier.armenda...@openbravo.com> null
[hb5.3] Cast to Object[] to avoid warnings due to argument changed to
vararg.
Fixed all other cases where this warning occurs.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachImplementationManager.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachmentAH.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachmentUtils.java
modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
src-test/src/org/openbravo/test/base/BaseTest.java
src-test/src/org/openbravo/test/base/OBBaseTest.java
src-test/src/org/openbravo/test/model/ClassLoaderTest.java
src/org/openbravo/dal/xml/EntityResolver.java
Javier Armendáriz <javier.armenda...@openbravo.com> null
[hb5.3] Replacing deprecated OBCriteria.LEFT_JOIN with
JoinType.LEFT_OUTER_JOIN.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_reports/ReportReconciliation.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/MatchTransactionDao.java
modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Cast to Object[] to avoid warnings due argument changed to vararg
Starting from Hibernate 5.1.0[1], Restrictions.in() accepts a vararg argument
(Object...) instead of an Object[] array. Due to this change we need to cast
the String[] parameter to Object[] to pass the strings as separate parameters
to this method.
Note that Restrictions still has another in() method that accepts a
Collection as argument.
[1] https://hibernate.atlassian.net/browse/HHH-9791
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOBUtils.java
src/org/openbravo/erpCommon/businessUtility/InitialSetupUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Reformat file
src/org/openbravo/erpCommon/businessUtility/InitialSetupUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Javier Armendáriz <javier.armenda...@openbravo.com> null
[hb5.3] Updating Query uses to use the new org.hibernate.query.Query.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/MatchTransactionDao.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_ReconciliationEventListener.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddOrderOrInvoiceFilterExpressionHandler.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/FundsTransferGLItemDefaultValueExpression.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPaymentFromJournalLine.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/ADCSInitialization.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/GlobalMenu.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/MenuManager.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/ViewComponent.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachmentUtils.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/example/GridExampleActionHandler.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/RoleInfo.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoComponent.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOBUtils.java
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
src-test/src/org/openbravo/test/costing/utils/TestCostingUtils.java
src-test/src/org/openbravo/test/dal/ADCachedMultiThreadTest.java
src-test/src/org/openbravo/test/db/model/functions/ADOrgTreeTest.java
src-test/src/org/openbravo/test/db/model/triggers/M_inoutlinetrgTest.java
src-test/src/org/openbravo/test/security/UserInfoSessionDataTest.java
src-test/src/org/openbravo/test/system/SystemValidatorTest.java
src-test/src/org/openbravo/test/taxes/TaxesTest.java
src-test/src/org/openbravo/test/views/ETagGeneration.java
src/org/openbravo/common/datasource/CostingTransactionsHQLTransformer.java
src/org/openbravo/common/datasource/StockReservationPickAndEditDataSource.java
src/org/openbravo/costing/CostAdjustmentProcess.java
src/org/openbravo/costing/CostAdjustmentUtils.java
src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java
src/org/openbravo/costing/CostingBackground.java
src/org/openbravo/costing/CostingMigrationProcess.java
src/org/openbravo/costing/CostingRuleProcess.java
src/org/openbravo/costing/CostingUtils.java
src/org/openbravo/costing/FixBackdatedTransactionsProcess.java
src/org/openbravo/costing/InventoryAmountUpdateProcess.java
src/org/openbravo/costing/LCMatchingProcess.java
src/org/openbravo/costing/LandedCostDistributionByAmount.java
src/org/openbravo/costing/LandedCostProcess.java
src/org/openbravo/costing/PriceDifferenceUtil.java
src/org/openbravo/costing/ResetStockValuation.java
src/org/openbravo/costing/StandardCostAdjustment.java
src/org/openbravo/dal/security/AcctSchemaStructureProvider.java
src/org/openbravo/erpCommon/ad_actionButton/MRPManufacturingPlanProcess.java
src/org/openbravo/erpCommon/ad_actionButton/ProcessGoods.java
src/org/openbravo/erpCommon/ad_actionButton/SequenceProductCreate.java
src/org/openbravo/erpCommon/ad_callouts/SL_BPartnerLocation.java
src/org/openbravo/erpCommon/ad_callouts/SL_LandedCost_InvoiceLine.java
src/org/openbravo/erpCommon/ad_callouts/SL_ProductPrice_PriceListVersion.java
src/org/openbravo/erpCommon/ad_forms/DocLineCashVATReady_PaymentTransactionReconciliation.java
src/org/openbravo/erpCommon/ad_process/UpdateActuals.java
src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.java
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java
src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.java
src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java
src/org/openbravo/erpCommon/obps/ActivationKey.java
src/org/openbravo/erpCommon/obps/ActiveInstanceProcess.java
src/org/openbravo/erpCommon/security/Login.java
src/org/openbravo/erpCommon/utility/CashVATUtil.java
src/org/openbravo/erpCommon/utility/OBLedgerUtils.java
src/org/openbravo/erpCommon/utility/SystemInfo.java
src/org/openbravo/erpCommon/utility/Utility.java
src/org/openbravo/event/CharacteristicValueEventHandler.java
src/org/openbravo/event/ConversionRateEventHandler.java
src/org/openbravo/event/InvoiceEventHandler.java
src/org/openbravo/event/OrderEventHandler.java
src/org/openbravo/event/OrderLineEventHandler.java
src/org/openbravo/event/ProductCharacteristicEventHandler.java
src/org/openbravo/event/UOMConversionEventHandler.java
src/org/openbravo/financial/FinancialUtils.java
src/org/openbravo/financial/ResetAccounting.java
src/org/openbravo/materialmgmt/ProductCharacteristicsDS.java
src/org/openbravo/materialmgmt/ReservationUtils.java
src/org/openbravo/materialmgmt/ResetValuedStockAggregated.java
src/org/openbravo/materialmgmt/ServicePriceUtils.java
src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java
src/org/openbravo/service/importprocess/ImportEntryManager.java
src/org/openbravo/service/importprocess/ImportReprocessErrorEntries.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add test case to cover grid summaries calculation
src-test/src/org/openbravo/test/datasource/SummaryFieldRequestTest.java
src-test/src/org/openbravo/test/AllWebserviceTests.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use createNativeQuery() instead of deprecated createSQLQuery()
src/org/openbravo/service/db/DataImportService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use diamond operator
src/org/openbravo/erpCommon/utility/TreeUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/erpCommon/utility/TreeUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Missing changes after last pi merge
src/org/openbravo/materialmgmt/InventoryCountProcess.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/dal/service/DataPoolChecker.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/dal/security/AcctSchemaStructureProvider.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Update copyright year
src/org/openbravo/dal/security/EntityAccessChecker.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/dal/core/OBContext.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/dal/security/EntityAccessChecker.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/dal/core/SessionHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Configuration.getClassMappings() is no longer available
It is no longer to get in-flight state of mappings with
Configuration.getClassMappings(). Instead we can define a Service Provider
Interface (SPI) that captures the SessionFactory build-time metadata which is
only available during bootstrap.
To be able to provide an SPI during bootstrap we are adding the
buildConfiguration() method in the SessionFactoryController which can be
extended by its subclasses.
src-test/src/org/openbravo/test/dal/HiddenUpdateTest.java
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Improve assertion text
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Improve comment
src/org/openbravo/dal/core/OBInterceptor.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add missing javadoc for new test
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Error after evict an already evicted object
When invoking evict() with an already evicted object, Hibernate can't find it
in the persintence context. In this case, it is verified whether the passed
object is even an entity, and if not an IllegalArgumentException is thrown.
This is different than the legacy Hibernate behavior, but what JPA 2.1 is
calling for with EntityManager.detach.
Therefore, this exception was not being thrown with Hibernate 3.6. In order
to keep the same behavior, we are overriding the getEntityName() of the
OBInterceptor. In this situation, this is the first method invoked by Hibernate
when guessing the name of an entity.
Thanks to the implementation of this method, Hibernate can verify that the
passed object is an entity, preventing the thrown of the exception.
src-test/src/org/openbravo/test/dal/DalTest.java
src/org/openbravo/dal/core/OBInterceptor.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix wrong count retrieval
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/HQLDataSourceService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] GenericJDBCException is wrapped inside a PersistenceException
If there is a PersistenceException when flushing changes into the database,
the SessionImpl wraps it in a PersistenceException that we need to catch
src-test/src/org/openbravo/test/modularity/DBPrefixTest.java
src-test/src/org/openbravo/test/modularity/TableNameTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Handle properly when a column has no alias + code improvements
- Prevented possible NPE in case the query uses columns without an alias
assigned
- Refactored some complex if clause and extracted logic into a private method
- Removed identical sub-expressions on both sides of operator "||"
- Some other minor improvements
modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListDataSource.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Handle properly the case where the column has not an alias
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/HQLDataSourceService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] org.hibernate.query.Query.count() does not throw QueryException
If a QueryException is thrown when building the query, it is wrapped and
eventually thrown inside an IllegalArgumentException.
src-test/src/org/openbravo/test/dal/ComputedColumnsTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Prevent NPE
Prevent NPE by checking if Configuration.getSqlFunctions() returns null. This
method now can return null because the map of SQL functions is lazily created
(it is not initialized until a new function is about to be added)
src-test/src/org/openbravo/test/base/OBBaseTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Update copyright year
src-test/src/org/openbravo/test/dal/DalPerformanceProxyTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Changes due to StatelessSession hierarchy cleanup
In Hibernate 5.2, there was a cleanup in the Session and StatelessSession
hierarchies. In the case of the SessionFactory.openStatelessSession() method,
we are no longer receiving a SessionImplementor but a SharedSessionContract
instance.
To be able to initialize the connection in the initializeDBSessionInfo()
method, we are casting the stateless session as a StatelessSessionImpl
instance. This way, we can retrieve the connection used by the session.
src-test/src/org/openbravo/test/dal/DalPerformanceProxyTest.java
src/org/openbravo/dal/core/DalSessionFactory.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Changed test name
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add javadoc
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Disable Property Nullability Check by default
In Hibernate 3.6 the property nullability check was disabled by default[1].
In Hibernate 5.3 it is indeed enabled by default, so we are disabling it by
default in order to keep the same behavior when creating entities through DAL
[1]
https://github.com/alostale/hibernate-orm/commit/9b38bca8eaeb08f7bd2fc65567b0c0937896a060
src-test/src/org/openbravo/test/dal/DalTest.java
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/base/secureApp/UserLock.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use transaction status instead of removed wasRolledBack() method
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/DataPoolSelectionEventHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src/org/openbravo/cluster/ClusterServiceManager.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor code improvements
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/HQLDataSourceService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/HQLDataSourceService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Define the property access strategy properly
- Renamed OBDynamicPropertyHandler as DalPropertyAccessStrategy. The
OBDynamicPropertyHandler was originally intended for dynamic objects but it was
also used as the property accessor when defining the hibernate mapping. For
this reason, it has been renamed.
- Refactored and extracted the getter/setter definition to the
DalPropertyAccess class which now contains the logic to access the properties.
src/org/openbravo/dal/core/DalPropertyAccess.java
src/org/openbravo/dal/core/DalPropertyAccessStrategy.java
src/org/openbravo/dal/core/DalMappingGenerator.java
src/org/openbravo/dal/core/OBDynamicPropertyHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix failing example test cases
src-test/src/org/openbravo/test/dal/DalPerformanceExampleTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix failing test case
Now when calling OBDal.getInstance().getSession().beginTransaction() being
the transaction already active, an IllegalStateException is thrown.
Added a check to prevent beginning the transaction if it is already active.
src-test/src/org/openbravo/test/dal/IssuesTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Remove deprecated registerSQLFunction method
src/org/openbravo/dal/service/OBDal.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Logging improvements
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query
src-test/src/org/openbravo/test/dal/IssuesTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Upgrade hibernate core library to version 5.3.0.Final
lib/runtime/hibernate-core-5.3.0.Final.jar
lib/runtime/hibernate-core-5.3.0.CR2.jar
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor code improvements
- Reorder the modifiers of the constants to comply with the Java Language
Specification
- Use diamond operator
- Remove commented out code
- Use the proper alternatives when applies (StringBuilder)
src/org/openbravo/dal/core/DalMappingGenerator.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Remove tuplizer declaration in the Hibernate mapping
The OBTuplizer/OBDynamicTuplizar usage is historical when there were ideas to
support dynamic non-generated objects. This does not apply anymore, in many
ways the generated classes are very standard and should directly work from a
standard perspective.
src/org/openbravo/dal/core/DalMappingGenerator.java
src/org/openbravo/dal/core/OBDynamicTuplizer.java
src/org/openbravo/dal/core/OBTuplizer.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use AvailableSettings
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Improve test assertion
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add test case for OBquery with an OBContext object parameter
Added test case to cover issue https://issues.openbravo.com/view.php?id=38512
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use HQL queries instead of deprecated Session.createCriteria
src-test/src/org/openbravo/test/xml/EntityXMLImportTestReference.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor query definition improvements
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/model/domaintype/SelectorDomainType.java
src/org/openbravo/base/model/domaintype/TreeDomainType.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor improvements
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/model/domaintype/SelectorDomainType.java
src/org/openbravo/base/model/ModelProvider.java
src/org/openbravo/base/model/domaintype/TreeDomainType.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use HQL queries instead of deprecated Session.createCriteria
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/model/domaintype/SelectorDomainType.java
src-test/src/org/openbravo/test/model/RuntimeModelTest.java
src/org/openbravo/base/model/domaintype/TreeDomainType.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Avoid @SuppressWarnings(rawtypes)
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRMApplicationInitializer.java
src/org/openbravo/base/model/ModelProvider.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use new API in summary field calculation
modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListDataSource.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Changes due to deprecated API
- Use org.hibernate.query.Query instead of org.hibernate.Query
- Use ParameterMetadata#getNamedParameterNames() instead of
getNamedParameters()
- Use javax.persistence.Tuple query instead of getReturnAliases()
modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListDataSource.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Log improvements
src/org/openbravo/dal/core/DalSessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Do not create the .hbm file twice if hibernate.hbm.file property is
set
src/org/openbravo/dal/core/DalMappingGenerator.java
src/org/openbravo/dal/core/DalSessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use DYNAMIC batch fetch style
By default Hibernate uses the LEGACY batch style. With the current model, the
SessionFactoryImpl is retaining in memory almost 1GB of heap, which means that
this object is ~700MB higher than before the upgrade.
For the moment, taking the DYNAMIC batch style which implies a reduction of
~130MB respect to the size of the SessionFactoryImpl before the upgrade.
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use NativeQuery instead of deprecated SQLQuery
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRMApplicationInitializer.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/ADAlertDatasourceService.java
src/org/openbravo/costing/CostingMigrationProcess.java
src/org/openbravo/dal/security/OrganizationStructureProvider.java
src/org/openbravo/erpCommon/ad_forms/SQLExecutor_Query.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] PostgreSQLDialect is deprecated
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use available JPA_VALIDATION_MODE constant
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Remove deprecated configuration properties usage
With issue[1] it was introduced the ability to configure Hibernate's hql
query plan cache size. The constants used to define the size were deprecated:
- QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES is deprecated in favor of
QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
- QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES is deprecated in favor of
QUERY_PLAN_CACHE_MAX_SIZE
Note that if the new properties are not defined, the sizes are still being
retrieved using the old ones[2].
Besides, note that since issue[1] it is not necessary to explicitly set the
values of the hibernate configuration settings, as they are added automatically
with the addCommonHibernateProperties() method if they are defined in the
Openbravo.properties file.
For this reason, we are just removing the code that explicitly configures the
two deprecated properties.
[1] https://issues.openbravo.com/view.php?id=37641
[2]
https://github.com/hibernate/hibernate-orm/commit/b4659173a88abbbc44d414af9e70e36abdc754ca
src/org/openbravo/base/session/SessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use Object.class if querying a unique result which isn't a
BaseOBObject
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Test cases to cover proxy loading behavior when accessing their ID
src-test/src/org/openbravo/test/dal/DalTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Update copyright year
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix query for individual summary field
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] 5.3.0.CR2
lib/runtime/byte-buddy-1.8.0.jar
lib/runtime/hibernate-commons-annotations-5.0.3.Final.jar
lib/runtime/hibernate-core-5.3.0.CR2.jar
lib/runtime/jboss-logging-3.3.2.Final.jar
legal/Licensing.txt
lib/runtime/hibernate-commons-annotations-5.0.2.Final.jar
lib/runtime/hibernate-core-5.3.0.CR1.jar
lib/runtime/jboss-logging-3.3.1.Final.jar
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Minor javadoc improvement
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
Add missing method javadoc
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix ModelProvider warnings
- Using JPA Criteria instead of deprecated session.createCriteria(Class)
- Using NativeQuery instead of deprecated SQLQuery. Adding
@SuppressWarnings(rawtypes) for the non-typed session.createNativeQuery()
method, as ResultTransformer[1] recommeded approach is deprecated
[1]
https://vladmihalcea.com/why-you-should-use-the-hibernate-resulttransformer-to-customize-result-set-mappings/
src/org/openbravo/base/model/ModelProvider.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Replace setString(int, value) with setParameter(String, Object)
src-test/src/org/openbravo/test/dal/IssuesTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Replace setString(int, value) with setParameter(String, Object)
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/TransactionsDao.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/CloneOrderActionHandler.java
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
src/org/openbravo/erpCommon/ad_process/assets/AssetLinearDepreciationMethodProcess.java
src/org/openbravo/materialmgmt/InventoryCountProcess.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Replace setParameter(int, value) with setParameter(String, Object)
Use named parameters in those places that were using positional parameters
with OBQuery.setParameter(int, value).
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
src-test/src/org/openbravo/test/dal/DalComplexQueryTestOrderLine.java
src/org/openbravo/base/structure/BaseOBObject.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix queries failing on window load
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceProperty.java
src/org/openbravo/erpCommon/utility/DimensionDisplayUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add missing code from pi merge
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Get dialect from the session factory's service registry
src/org/openbravo/dal/service/OBDal.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Merge with pi
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add note about possible return type change when using
setSelectClause()
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Fix query failing after login
- Use named parameters instead of desupported legacy-style query parameters
('?')
- Use org.hibernate.query.Query
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add stream() method
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use special parameter name to try to avoid conflicts
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query instead of deprecated
org.hibernate.Query
src-test/src/org/openbravo/test/dal/DalQueryTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Handle generics properly in OBQuery
- Reverted changes to return any type of object in OBQuery: it handles just
those classes extending BaseOBObject again.
- Add a new createQuery() method that allows to specify the type to be
returned for those cases where the query does not return a BaseOBObject.
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java
modules/org.openbravo.service.json/src/org/openbravo/service/json/DataEntityQueryService.java
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Using java 8
.settings/org.eclipse.jdt.core.prefs
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Query in summary function don't return an BaseOBOBject
modules/org.openbravo.service.json/src/org/openbravo/service/json/DataEntityQueryService.java
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
src/org/openbravo/dal/service/OBCriteria.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] OBQuery can return any type of object
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] ScrollableResults is AutoCloseable
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Iterate over the "entrySet" instead of the "keySet"
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Use org.hibernate.query.Query instead of deprecated
org.hibernate.Query
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Deprecate getParameters() and setParameters(Map) methods
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] 'parameters' list is no longer needed
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Legacy-style query parameters ('?') are no longer supported
- To avoid errors when executing a query using OBQuery with positional
parameters, which are no longer supported in Hibernate, now we parse the query
transforming the parameters into named parameters.
- Added a test case to cover this scenario
src-test/src/org/openbravo/test/dal/DalTest.java
src/org/openbravo/dal/service/OBQuery.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Add comment and update copyright year
src/org/openbravo/dal/core/DalLayerInitializer.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Close dangling connection after Tomcat start
This changeset is intended to do the same as [1] using the new Hibernate API.
But with this change, the pool is completely closed (is no longer usable).
Please note that when stop supporting work without an external connection
pool, the if clause can be removed allowing to close the Hibernate pool in all
cases
[1]
https://code.openbravo.com/erp/devel/pi/rev/9534e8e498fde6508ff2bf5988fd05a7da0c3bf2
src/org/openbravo/base/session/SessionFactoryController.java
src/org/openbravo/dal/core/DalLayerInitializer.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Retrieve the JdbcConnectionAccess properly
src/org/openbravo/dal/core/DalSessionFactory.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Make tomcat start
src/org/openbravo/dal/core/DalMappingGenerator.java
src/org/openbravo/dal/core/OBDynamicPropertyHandler.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] Configuration.addXML is no longer supported
src/org/openbravo/dal/core/DalSessionFactoryController.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] make it compile
- CriteriaImpl, EntityKey, PersistentBag, Session, SessionFactoryImpl and
SessionImplementor classes were repackaged in Hibernate 4.0
- Getter and Setter classes were repackaged in Hibernate 5.0
- UUIDGenerator.generate method now accepts a SharedSessionContract instead
of a SessionImplementor
- Starting from Hibernate 5.2, SessionFactory extends
javax.persistence.EntityManagerFactory: DalSessionFactory must implement the
new inherited methods
- Issue HHH-3529 was solved in Hibernate 3.2.4, there is no need of
workarounding it in DalSessionFactory.
- Starting from Hibernate 5.0, PropertyAccessStrategy is used instead of
PropertyAccessor
- AbstractEntityTuplizer.buildInstantiator method signature changed in
Hibernate 5.1
- Starting from Hibernate 4.0, the withOptions() method is used to get a
Session builder from the SessionFactory. This builder can be used to retrieve
the connection.
- SessionFactoryImplementor.getConnectionProvider() was removed in Hibernate
5.0, this is because the access to connections via JdbcConnectionAccess is
preferred. JdbcConnectionAccess is tied to the Hibernate Session to properly
account for contextual information.
- Transaction.wasRolledBack() is no longer available starting from Hibernate
5.0, it must be replaced with Transaction.getStatus() ==
TransactionStatus.ROLLED_BACK
src-test/src/org/openbravo/test/dal/ComputedColumnsTest.java
src-test/src/org/openbravo/test/dal/DalPerformanceExampleTest.java
src-test/src/org/openbravo/test/dal/HiddenUpdateTest.java
src-test/src/org/openbravo/test/model/RuntimeModelTest.java
src/org/openbravo/base/model/ModelProvider.java
src/org/openbravo/base/session/DalUUIDGenerator.java
src/org/openbravo/base/session/SessionFactoryController.java
src/org/openbravo/dal/core/DalSessionFactory.java
src/org/openbravo/dal/core/OBDynamicPropertyHandler.java
src/org/openbravo/dal/core/OBDynamicTuplizer.java
src/org/openbravo/dal/core/OBTuplizer.java
src/org/openbravo/dal/core/SessionHandler.java
src/org/openbravo/dal/service/OBCriteria.java
src/org/openbravo/dal/service/OBDal.java
src/org/openbravo/event/CharacteristicValueEventHandler.java
src/org/openbravo/event/ProductCharacteristicValueEventHandler.java
src/org/openbravo/materialmgmt/InventoryCountProcess.java
Carlos Aristu <carlos.ari...@openbravo.com> null
[hb5.3] updated libraries
lib/runtime/classmate-1.3.0.jar
lib/runtime/hibernate-commons-annotations-5.0.2.Final.jar
lib/runtime/hibernate-core-5.3.0.CR1.jar
lib/runtime/jandex-2.0.3.Final.jar
lib/runtime/javassist-3.22.0-GA.jar
lib/runtime/javax.persistence-api-2.2.jar
lib/runtime/jboss-logging-3.3.1.Final.jar
lib/runtime/jboss-transaction-api_1.2_spec-1.0.1.Final.jar
legal/Licensing.txt
lib/runtime/hibernate-jpa-2.0-api-1.0.0.Final.jar
lib/runtime/hibernate3-patched.jar
lib/runtime/javassist-3.20.0-GA.jar
lib/runtime/jta.jar
Carlos Aristu <carlos.ari...@openbravo.com> null
related to issue 39005: minor code improvements
- Can directly return the createComponentResource result
- Use diamond operator
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponentProvider.java
Changes for Build #2805
Mark <markm...@gmail.com> null
Fixes issue 38926: Not Posted Transaction Report is showing records that
belong
to organizations the role does not have access to
Added filtering by organizations to avoid see entries of organizations not
accessible
by the user role in the Not Posted Transaction Report.
src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.java
src/org/openbravo/erpCommon/ad_reports/ReportNotPosted_data.xsql
Atul Gaware <atul.gaw...@openbravo.com> null
Fixes Issue 0038867:Cannot process a Landed Cost if the role does not have
access to the organization of a transaction that needs to be adjusted
In method generateTransactionCosts of Cost Adjustment Process,
use Admin mode with client org check flag as false.
src/org/openbravo/costing/CostAdjustmentProcess.java
Armaignac <collazoan...@gmail.com> null
Fixes issue 38864: Problems in 'Add Details' (Payment In) when
autodistribute
amount property is disabled
When 'Add Payment: Automatically distribute amounts' property is set to 'N' or
there are more than 100 shown invoices, if you have many selected invoices and
you change the 'Actual Payment' value to the same as 'Expected Payment',
'There is a difference of' doesn't refresh automatically (it should be 0) and
therefore, 'Overpayment Action' combo box doesn't dissapear. Both fields should
be refreshed in real time when 'Actual Payment' is modified.
Now the fields are properly updated even if the amount doesn't distribute
automatically
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
Carlos Aristu <carlos.ari...@openbravo.com> null
related to issue 39038: replace .jar compiled with wrong Java version
src-db/database/lib/dbsourcemanager.jar
Carlos Aristu <carlos.ari...@openbravo.com> null
related to issue 37064: add null check
Added null check because after the Hibernate upgrade, the getReturnAliases()
method returns null for those columns in the select which does not have an alias
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
Changes for Build #2806
Carlos Aristu <carlos.ari...@openbravo.com> null
related to issue 38675: fix comment
modules/org.openbravo.client.application/src/org/openbravo/client/application/OBBindings.java
Changes for Build #2807
Asier Lostalé <asier.lost...@openbravo.com> null
fixed bug 39060: reports randomly not downloaded using different server
names
When a report is generated in server a response with the information to
download
it is sent back to client. This information included full url based on
strDireccion
value, this variable is not thread safe and in case of using differnt names it
can take an unexpected value.
Now instead of an absolute path, we send a relative path startring from
context.
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
Changes for Build #2808
No changes
Changes for Build #2809
Armaignac <collazoan...@gmail.com> null
Fixes issue 0038909:"PLM Status" field in Product window should be renamed
As part of the project Product Lifecycle Management a new field has been added
to the Product window to set the status of the product. The label for that field
is set as "PLM Status", a name that can be improved.
The PLM Status field was renamed to Lifecycle Status in Product window.
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
Changes for Build #2810
Stefan Hühner <stefan.hueh...@openbravo.com> null
Fixed 39131. Cleanup unused java imports in index.jsp
src/index.jsp
RM packaging bot <staff...@openbravo.com> null
CI: merge back from main
src-db/database/sourcedata/AD_MODULE.xml
RM packaging bot <staff...@openbravo.com> null
CI: update AD_MODULE to version 34504
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
src-db/database/sourcedata/AD_MODULE.xml
Sandra Huguet <sandra.hug...@openbravo.com> null
related to issue 39017 code review changes
fix group by clause
src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder_data.xsql
Sandra Huguet <sandra.hug...@openbravo.com> null
related to issue 39017 code review changes
change m_pricelist_id column by name column, because is the correct one
src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder_data.xsql
Armaignac <collazoan...@gmail.com> null
Fixes issue 39017: Performance issue in Requisition To Order window
src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder.java
src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder_data.xsql
RM packaging bot <staff...@openbravo.com> null
CI: merge back from main
src-db/database/sourcedata/AD_MODULE.xml
RM packaging bot <staff...@openbravo.com> null
CI: update AD_MODULE to version 34499
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
src-db/database/sourcedata/AD_MODULE.xml
Mark <markm...@gmail.com> null
Fixes issue 39036: Wrong Current Unit Cost for production products
in Inventory Amount Update Lines
To avoid confusion to users if the selected product is marked as production then
the warehouse dimension will be hidden as this dimension is not taken into
account
in the process when the Current Inventory Amount and On hand qty values are
calculated
for production products.
This solution includes:
- Created a new auxiliary input related to the Inventory Amount Update Lines
tab to store
the value if the selected product is a production product or not.
- Was modified the Display Logic of the Warehouse field to take into account if
the selected
product is a production product or not. In case it is the field is hidden, in
other case it is shown.
- Was modified the SL_InvAmtUpd_ProductRefDate.java callout to set an empy
warehouse
when the product is marked as production.
src-db/database/sourcedata/AD_AUXILIARINPUT.xml
src-db/database/sourcedata/AD_FIELD.xml
src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java
RM packaging bot <staff...@openbravo.com> null
CI: merge back from main
RM packaging bot <staff...@openbravo.com> null
CI: update AD_MODULE to version 34495
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
src-db/database/sourcedata/AD_MODULE.xml
Augusto Mauch <augusto.ma...@openbravo.com> null
Fixes issue 38903: BaseOBObjects stored in OBContext are properly
initialized
Now all the first level BaseOBObject properties of the BaseOBObjects stored in
the context (user,
organization, role, language, warehouse) are properly initialized using
Hibernate.initialize.
This way, they are no longer proxies, so they can be accessed outside the DAL
session where they
were created.
src-test/src/org/openbravo/test/dal/OBContextTest.java
src/org/openbravo/dal/core/OBContext.java
RM packaging bot <staff...@openbravo.com> null
Merge back from main
RM packaging bot <staff...@openbravo.com> null
Merge temporary head for 3.0PR18Q3
RM packaging bot <staff...@openbravo.com> null
Added signature for changeset bbb6e342b4af
.hgsigs
RM packaging bot <staff...@openbravo.com> null
Added tag 3.0PR18Q3 for changeset 5cbef591aff0
.hgtags
RM packaging bot <staff...@openbravo.com> null
Update AD_MODULE version to 3.0PR18Q3
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.datasets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3.framework/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.v3/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
src-db/database/sourcedata/AD_MODULE.xml
Priya Muthukumar <priya.muthuku...@openbravo.com> null
Commit to increment the obx version number in CR
lib/README
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes bug 39080: PG error text parser is not translating properly some
messages
Fix for issue #38827 was not taking into accout the possibility of having
multiple translatable elements (text surrounded by @) in the same error message.
Therefore, it has been restored the previous regular expression, and we are
now directly stripping the part that contains the technical information of a
trigger failure from the DB message returned by PostgreSQL.
src/org/openbravo/erpCommon/utility/ErrorTextParserPOSTGRE.java
Asier Lostalé <asier.lost...@openbravo.com> null
fixed bug 39006: BaseComponentProvider is not thread safe
Static appDependencies has been changed from HashMap to ConcurrentHashMap,
this field can potentially be concurrently initialized from several classes
being HashMap not thread safe can lead to inconsistent results.
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponentProvider.java
Atul Gaware <atul.gaw...@openbravo.com> null
Fixes Issue 38958:More quantity reserved than available after booking
a reopened sales order with more ordered quantity
** When ordered qty is greater than already reserved quantity
then v_pendingtounreserve needs to be considered as ZERO instead
of negative value as it exceeds the reserved qty than the available
qty.
src-db/database/model/functions/C_ORDER_POST1.xml
Sandra Huguet <sandra.hug...@openbravo.com> null
related to issue 38883 update Copyright
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_05.java
Atul Gaware <atul.gaw...@openbravo.com> null
Related to Issue 38883:Copy from Order it does not copy line description
Modify the copy line from order related tests to check copied line
description with the original line description instead of checking
with header description
src-test/src/org/openbravo/test/copyLinesFromOrders/CopyLinesFromOrdersTest.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestConstants.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_13.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_14.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_15.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_16.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_17.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_18.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_19.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataPO_20.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_01.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_02.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_03.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_04.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_05.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_06.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_07.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_08.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_AUM_21.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CLFOTestDataSO_AUM_22.java
src-test/src/org/openbravo/test/copyLinesFromOrders/data/CopyLinesFromOrdersTestData.java
Atul Gaware <atul.gaw...@openbravo.com> null
Fixes Issue 38883:Copy from Order it does not copy line description
Order Line description was wrongly set from Order description,
it will be set from Order Line from which the new Order Line
is created.
src/org/openbravo/common/actionhandler/copyfromorderprocess/UpdateOrderLineInformation.java
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes issue 38901: jaxbl-impl library should be included in the classpath
lib/runtime/jaxb-impl-2.2.6.jar
legal/Licensing.txt
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes issue 38897: not necessary to include jaxws-api library
legal/Licensing.txt
lib/runtime/jaxws-api-2.2.12.jar
Sandra Huguet <sandra.hug...@openbravo.com> null
related to issue 38878 added modulescript with default value of preference
added modulescript with default value of hierarchical price list
preference depends on the openbravo version.
src-util/modulescript/build/classes/org/openbravo/modulescript/HierarchicalPriceListPreference.class
src-util/modulescript/build/classes/org/openbravo/modulescript/HierarchicalPriceListPreferenceData.class
src-util/modulescript/src/org/openbravo/modulescript/HierarchicalPriceListPreference.java
src-util/modulescript/src/org/openbravo/modulescript/HierarchicalPriceListPreference_data.xsql
Armaignac <collazoan...@gmail.com> null
Fixed issue 38878:The process "Create price list" increases the product
price
The process Create Price List was increasing the product price when the price
list
schema have two or more lines at product level.
Now the price list schema lines defined at product level is take into account in
the Create Price List process.
A new JUnit test was added to properly check this behavior.
A new preference was created to calculate the product price in a hierarchical
way
src-test/src/org/openbravo/test/pricelist/data/PriceListTestData17.java
src-db/database/model/functions/M_PRICELIST_CREATE.xml
src-db/database/sourcedata/AD_REF_LIST.xml
src-test/src/org/openbravo/test/pricelist/PriceListTest.java
src-test/src/org/openbravo/test/pricelist/data/PriceListTestConstants.java
src-test/src/org/openbravo/test/pricelist/data/PriceListTestData.java
Javier Armendáriz <javier.armenda...@openbravo.com> null
Fixed issue 38922: The variants of a product are not shown.
Currently the manage variants datasource is limited to 1000 variants, and
if this limit is exceeded no data is calculated even if performing filters.
This process needs further optimization and refactor.
This changeset adds the possibility of showing an error message when a exception
in the datasource is thrown. This let us to show a different message when
variants limit is exceeded or no variants are available.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
src-db/database/sourcedata/AD_MESSAGE.xml
src/org/openbravo/materialmgmt/ManageVariantsDS.java
web/js/productCharacteristicsProcess.js
Asier Lostalé <asier.lost...@openbravo.com> null
fixes issue 38855: Error shown in Purchase Order Report is not user friendly
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
src/org/openbravo/service/db/DbUtility.java
Carlos Aristu <carlos.ari...@openbravo.com> null
related to issue 38907: add test case
- Extracted the test that reproduces some particular scenarios to test the
error parsing into new ErrorTextParserIntegrationTest test class.
- Use the ErrorTextParserTest to keep just those tests that directly test the
parsing/translation of error string messages.
src-test/src/org/openbravo/test/system/ErrorTextParserIntegrationTest.java
src-test/src/org/openbravo/test/AllAntTaskTests.java
src-test/src/org/openbravo/test/AllQuickAntTaskTests.java
src-test/src/org/openbravo/test/AntTaskTests.java
src-test/src/org/openbravo/test/system/ErrorTextParserTest.java
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes bug 38907: PG error text parser is not translating properly some
messages
Fix for issue #38827 was not taking into accout the possibility of having
multiple translatable elements (text surrounded by @) in the same error message.
Therefore, it has been restored the previous regular expression, and we are
now directly stripping the part that contains the technical information of a
trigger failure from the DB message returned by PostgreSQL.
src/org/openbravo/erpCommon/utility/ErrorTextParserPOSTGRE.java
Atul Gaware <atul.gaw...@openbravo.com> null
Fixes Issue 38932:Wrong date in Costing tab when manually
adjusting a stock decrease: ending date is prior to
starting date
** Use transaction process date instead of current date
to create costing register
src/org/openbravo/costing/AverageCostAdjustment.java
Carlos Aristu <carlos.ari...@openbravo.com> null
fixes issue 39076: Clean up jta library related legal information
legal/Sun_license_agreement.txt
legal/jta/COPYRIGHT
legal/jta/DistributionREADME
legal/jta/JavaTransactionAPI_Entitlement(20070303).txt
Last 20 lines of the console output:
[...truncated 2830 lines...]
+ (( i=0 ))
+ (( i<12 ))
++ jps
++ grep Bootstrap
++ true
+ '[' '' = '' ']'
+ break
++ jps
++ grep Bootstrap
++ true
+ '[' '' '!=' '' ']'
+ true
+ '[' 0 '!=' 0 ']'
+ echo
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 0
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-builds mailing list
Openbravo-builds@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-builds