Hi All,

I'm also -1 to introducing it to this release. On the other hand we do have
a lot of other things to look into when it comes to this release. Specially
the cases like multi-tenancy. So we will keep it as it is now and we will
also help sameera to get Jaggery-Entity done. Then we can also integrate it
slowly. At this point I think the best approach is to make the current pack
stable and do the re-factoring properly.

Regards,
KasunD


On Tue, May 6, 2014 at 12:01 PM, Dilshan Edirisuriya <[email protected]>wrote:

> Hi Chan,
>
> What you are saying is contradictory. This is what you said
> "Jaggery-Entity is a light weight ORM that can be used to handle models in
> the business layer." at the very fast comments.
>
> "Plus I see a lot of reinventing the wheel over there. What SQL CRUD
> presents is a solution to write minimal SQL and become minimal SQL
> dependent. ​SQL CRUD is an independent plugin for entity"
>
> The way I see is that the SQL layer should resides right next to the DB
> layer. On top of that entities should reside. So the end user is able to
> make use of entities with possible mappings and entity relationships to
> deal operations at a higher level. For this you may have configurations to
> change like db type, pool size, max, min connections etc in a json file or
> something. But right now what I feel what you are doing is the other way
> around.
>
> Anyway IMO jaggery-entity is a great framework and it sill needs more
> features and some enhancements. I talked to Sameera on this and he is
> planning to extend this further which we also should help him and get this
> done. But for the time being why are we going to add this into current EMM
> in a hurry? Whats wrong with the current approach where we write queries to
> the DB hostobjects like other products do? Why we have to break something
> working and introduce new stuff? IMO this needs to be go in a future
> release once hes done with implementation. Correct me if I am wrong.
>
> Regards,
>
> Dilshan
>
>
> On Tue, May 6, 2014 at 6:39 AM, Chan <[email protected]> wrote:
>
>>
>>
>>
>> On Mon, May 5, 2014 at 11:47 PM, Dilshan Edirisuriya <[email protected]>wrote:
>>
>>> Hi Chan,
>>>
>>> IMO you have to support those features to be fulfilled as a ORM mapping
>>> technology. Anyway does this integrates to EMM at some point?
>>>
>>
>> ​Do mind you - this is not an ORM. ORM has a lot of functionality and
>> it's too much of a pain to have. Plus I see a lot of reinventing the wheel
>> over there. What SQL CRUD presents is a solution to write minimal SQL and
>> become minimal SQL dependent. ​SQL CRUD is an independent plugin for
>> entity. We have integrated it to EMM for persistence layer.
>>
>>
>>
>>>
>>> Regards,
>>>
>>> Dilshan
>>>
>>>
>>> On Mon, May 5, 2014 at 7:13 PM, Chan <[email protected]> wrote:
>>>
>>>>
>>>>
>>>>
>>>> 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>*
>>>>
>>>
>>>
>>>
>>> --
>>> 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>*
>>
>
>
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to