Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012507Openbravo ERPA. Platformpublic2010-03-01 13:192010-03-13 00:00
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
pi 
pi2.50MP14 
Core
No
0012507: New customizable references should make it possible to use a custom hibernate user type
The current customizable references use the same type (==java class) for the property in the generated entity class and the hibernate mapping.

If the hibernate mapping can make use of a different class then it is possible to use custom hibernate user types to persist data through hibernate.

For information on hibernate user types see this link:
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/mapping.html#mapping-types-custom [^]
Extend the PrimitiveDomainType with an addition getHibernateType method which is used by the mapping generator.
No tags attached.
Issue History
2010-03-01 13:19mtaalNew Issue
2010-03-01 13:19mtaalAssigned To => mtaal
2010-03-01 13:20hgbotCheckin
2010-03-01 13:20hgbotNote Added: 0024902
2010-03-01 13:20hgbotStatusnew => resolved
2010-03-01 13:20hgbotResolutionopen => fixed
2010-03-01 13:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9f67838a3ea8d35ef6a782e7d0b7ce17d300b6a6 [^]
2010-03-12 15:38alostaleStatusresolved => closed
2010-03-12 15:38alostaleFixed in Version => 2.50MP14
2010-03-12 22:40hudsonbotCheckin
2010-03-12 22:40hudsonbotNote Added: 0025364
2010-03-13 00:00anonymoussf_bug_id0 => 2969675

Notes
(0024902)
hgbot   
2010-03-01 13:20   
Repository: erp/devel/pi
Changeset: 9f67838a3ea8d35ef6a782e7d0b7ce17d300b6a6
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Mar 01 13:24:11 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9f67838a3ea8d35ef6a782e7d0b7ce17d300b6a6 [^]

fixes issue 12507: New customizable references should make it possible to use a custom hibernate user type

---
M src/org/openbravo/base/model/Property.java
M src/org/openbravo/base/model/domaintype/BasePrimitiveDomainType.java
M src/org/openbravo/base/model/domaintype/PrimitiveDomainType.java
M src/org/openbravo/dal/core/DalMappingGenerator.java
---
(0025364)
hudsonbot   
2010-03-12 22:40   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/9f67838a3ea8 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/631c626866c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16685.obx [^]