Benx Blog

19 十一月, 2014

Diigo Diary 11/19/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

18 十一月, 2014

Diigo Diary 11/18/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

17 十一月, 2014

Diigo Diary 11/17/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

15 十一月, 2014

Diigo Diary 11/15/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午
    • 小朋友在當年度91日(含91日當天)滿6足歲,即屬於當年度9月應入小學就讀之學童
    • 2.何時可以「知道」我的孩子(新生)要到那所學校唸書?

        

      答:設籍臺北市之6足歲學童,可於620日前由區公所寄發「入學通知單」中得知學童之      就讀學校。

    • 凡設籍於本市,並實際居住於本市的小朋友,均可就讀本市國小,並無設籍時間長短的限制。但如果小朋友的學區是「額滿學校」,則必須依照「額滿學校」優先分發入學原則,以小朋友的設籍時間先後依序分發入學,或改分發至其他非額滿學校。

Posted from Diigo. The rest of my favorite links are here.

13 十一月, 2014

Diigo Diary 11/13/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

12 十一月, 2014

Diigo Diary 11/12/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午
    • JPA defines two main states for an object for a given persistence context, managed and detached.

       

      A managed object is one that was read in the current persistence context (EntityManager/JTA transaction). A managed object is registered with the persistence context and the persistence context will track changes to that object and maintain its object identity. If the same object is read again, in the same persistence context, or traversed through another managed object’s relationship, the same identical (==) object will be returned. Calling persist on a new object will also make it become managed. Calling merge on a detached object will return the managed copy of the object. An object should never be managed by more than one persistence context. An object will be managed by its persistence context until the persistence context is cleared through clear, or the object is forced to be detached through detach. A removed object will no longer be managed after a flush or commit. On a rollback, all managed objects will become detached. In a JTA managed EntityManager all managed objects will be detached on any JTA commit or rollback.

    • merge does not directly update the object into the database, it merges the changes into the persistence context (transaction)
    • When the transaction is committed, or if the persistence context is flushed, then the object will be updated in the database.
    • The EntityManager.remove() operation is used to delete an object from the database. remove does not directly delete the object from the database, it marks the object to be deleted in the persistence context (transaction). When the transaction is committed, or if the persistence context is flushed, then the object will be deleted from the database.
    • The EntityManager.refresh() operation is used to refresh an object’s state from the database. This will revert any non-flushed changes made in the current transaction to the object, and refresh its state to what is currently defined on the database.
    • Refresh must be called on a managed object, so you may first need to find the object with the active EntityManager if you have a non-managed instance.
    • The EntityManager.getReference() operation is used to obtain a handle to an object without requiring it to be loaded.
    • The content of the specified detached entity object is copied into an existing managed entity object with the same identity (i.e. same type and primary key). If the EntityManager does not manage such an entity object yet a new managed entity object is constructed. The detached object itself, however, remains unchanged and detached.

Posted from Diigo. The rest of my favorite links are here.

11 十一月, 2014

Diigo Diary 11/11/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

6 十一月, 2014

Diigo Diary 11/06/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

4 十一月, 2014

Diigo Diary 11/04/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

1 十一月, 2014

Diigo Diary 11/01/2014

Filed under: Diigo Diary — Ben Shen @ 8:30 上午

Posted from Diigo. The rest of my favorite links are here.

後一頁 »

在WordPress.com寫網誌.