I have a feeling you understood it in reverse. I want to extract existing 
jdbc field and compose them into a new embedded object...
Is that what you are describing here ? 

On Monday, October 27, 2014 12:23:50 PM UTC-4, Lvc@ wrote:
>
> Hi Daniel,
> you could do with 2 FIELD blocks:
>
> { field: {
>     fieldName: "amount",
>     expression: "amount_amount"
>   }
> },
> { field: {
>     fieldName: "amount_amount",
>     operation: "remove"
>   }
> }
>
> I know it's pretty long, but works. Maybe we could introduce something 
> like:
>
> { field: {
>     fieldName: "amount",
>     renameFrom: "amount_amount"
>   }
> }
>
> ??
>
> Lvc@
>
>
> On 22 October 2014 16:59, Daniel Cardin <[email protected] <javascript:>
> > wrote:
>
>> I have a table which has 4 fields which represent an embedded object. 
>> like : amount_amount, amount_currency, amount_rate, amount_exchcurrency
>>
>> I want to create in the output
>>
>> ....
>> amount : { @Class:'MonetaryAmount', amount=amount_amount, currency=
>> amount_currency } etc.
>> ...
>>
>> I don't think I can do it with a LET block... creating an embedded 
>> object...
>> I don't think I can do it with a CODE block either
>>
>> So I'm not certain what I should do. Any suggestion before I write 
>> another transformer ?
>>
>> Thanks
>>
>> -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to