up-2.50topi-pgsql - Build # 252 - Failure:
Check console output at https://ci.openbravo.com/job/up-2.50topi-pgsql/252/ to
view the results.
Committers since last success:
Changes for Build #252
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
Last 20 lines of the console output:
[...truncated 2687 lines...]
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Build step 'Execute managed script' marked build as failure
BUILD FAILED
/srv/ci/workspace/up-2.50topi-pgsql/build.xml:400: The following error occurred
while executing this line:
/srv/ci/workspace/up-2.50topi-pgsql/build.xml:433: The following error occurred
while executing this line:
/srv/ci/workspace/up-2.50topi-pgsql/build.xml:694: The following error occurred
while executing this line:
/srv/ci/workspace/up-2.50topi-pgsql/build.xml:775: Java returned: 143
Total time: 85 minutes 5 seconds
Checking console output
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