On Mon, May 5, 2014 at 1:11 PM, Dilshan Edirisuriya <[email protected]>wrote:

> Hi Chan,
>
> Does jaggery-entity have the capability to define parent child
> relationship and do cascading saves? Also how about supporting
> query/fetching methods for this if it has multiple levels? If ORM cannot be
> used in some instance can the same object entities and mappings be used to
> query database with native sql?
>
> ​We are not handling the complete ORM ​operations. Only few operations
mentioned above. Having parent child relationships and cascading would
require us to build a complicated ORM suite that is unnecessary IMO. The
entity object will be wrapped by a high level object that will decide to
load the necessary child entities (first call or lazy).

As for native sql - we have a method in the SQL CRUD called query. You can
pass in a sql query to the query method and a mapping function.

Regards,
>
> Dilshan
>
>
> On Sun, May 4, 2014 at 3:05 PM, Chan <[email protected]> wrote:
>
>> Hi folks,
>> I have started working on the $subject. Jaggery-Entity is a light weight
>> ORM that can be used to handle models in the business layer. Since we are
>> using an SQL datasource (H2) - I have started working on the SQL CRUD
>> plugin [2] for jaggery-entity. It will support
>>
>>    - Insert
>>    - Update
>>    - Select (not implemented yet)
>>    - Delete (not implemented yet)
>>
>>
>> ​Cheers~​
>>
>> ​[1] - https://github.com/splinter/jaggery-entity​
>> ​[2] -
>> https://github.com/wso2-dev/product-emm/blob/feature/backend-refactor/modules/apps/emm/modules/sql-crud.js
>> ​
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email       [email protected] <[email protected]>*
>> *  ~Mobile     +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me <http://dulitha.me>*
>>  *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>>   *~Github     @dulichan <https://github.com/dulichan>*
>>   *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
>>
>
>
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
>



-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email       [email protected] <[email protected]>*
*  ~Mobile     +94712112165 <%2B94712112165>*
*  ~Website   dulitha.me <http://dulitha.me>*
*  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
  *~Github     @dulichan <https://github.com/dulichan>*
  *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to