Further issues with hot-deploy legacydb delegator for external db

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Further issues with hot-deploy legacydb delegator for external db

Christian Carlow-OFBizzer
I gave up trying to create a separate legacydb delegator as instructed
in:
https://cwiki.apache.org/confluence/display/OFBIZ/Handling+of+External+data

I found this thread that suggested just adding the <group-map> element
for the external db to the default delegator.  The problem I'm having
now is when I try to select an entity from the external db, an error
occurs because the GenericDelegator is trying to get LAST_UPDATED_STAMP,
etc. fields which do not exist in those entities.

Anyone know how to prevent the delegator from trying to select those
fields from the external db entities?
Reply | Threaded
Open this post in threaded view
|

Re: Further issues with hot-deploy legacydb delegator for external db

Christian Carlow-OFBizzer
Sorry, here's the thread missing in the previous message:
https://www.mail-archive.com/user@.../msg15746.html

On 01/15/2014 09:09 AM, Christian Carlow wrote:

> I gave up trying to create a separate legacydb delegator as instructed
> in:
> https://cwiki.apache.org/confluence/display/OFBIZ/Handling+of+External+data
>
> I found this thread that suggested just adding the <group-map> element
> for the external db to the default delegator.  The problem I'm having
> now is when I try to select an entity from the external db, an error
> occurs because the GenericDelegator is trying to get
> LAST_UPDATED_STAMP, etc. fields which do not exist in those entities.
>
> Anyone know how to prevent the delegator from trying to select those
> fields from the external db entities?

Reply | Threaded
Open this post in threaded view
|

Re: Further issues with hot-deploy legacydb delegator for external db

Christian Carlow-OFBizzer
In reply to this post by Christian Carlow-OFBizzer
Solved.  I forgot to add no-auto-stamp="true" to each of the external
entities in entitymodel.xml.  Seems like
framework/webtools/webapp/webtools/entity/ModelInduceFromDb.jsp should
automatically set that attribute no-auto-stamp="true".

On 01/15/2014 09:09 AM, Christian Carlow wrote:

> I gave up trying to create a separate legacydb delegator as instructed
> in:
> https://cwiki.apache.org/confluence/display/OFBIZ/Handling+of+External+data
>
> I found this thread that suggested just adding the <group-map> element
> for the external db to the default delegator.  The problem I'm having
> now is when I try to select an entity from the external db, an error
> occurs because the GenericDelegator is trying to get
> LAST_UPDATED_STAMP, etc. fields which do not exist in those entities.
>
> Anyone know how to prevent the delegator from trying to select those
> fields from the external db entities?