nttuyen’s weblog

Hôm nay mới học được chiêu dùng  Proxy để viết connection pool, chia sẻ lên đây với mọi người  🙂

ConnectionPool.java

Download về, đổi tên thành ConnectionPool.java

Để xem chi tiết hơn về Persistence-lib của mình, vui lòng truy cập qua SVN: http://svn6.assembla.com/svn/nttuyen/nttuyen-java-lib/trunk/

Cuối cùng thì mình cũng kết thúc 4.5 năm ĐH. Buổi tốt nghiệp cũng không thấy vui lắm. Nhưng thôi, đằng nào cũng xong rồi, post nốt cái slide lên đây, để có gì xem lại sau nữa vậy

Bữa trước, khi làm đồ án, định dùng  Hibernate nhưng thấy nó hơi khó hiểu và thừa. Ngồi nhẩn nha viết một cái Persistence chơi. Vừa là học code, làm đồ án, vừa là để hiểu hơn về Hibernate, hy vọng sau này nếu cần làm sẽ nắm bắt được nó nhanh hơn 🙂

Cái Persistence lib của mình thực hiện công việc map các Entity class vào với table của  CSDL quan hệ, sử  dụng annotation.

Persistence lib có hỗ trợ connection pool.

Persistence lib này hiện chưa support kế thừa, các quan hệ một – một, một – nhiều và nhiều – nhiều.

Persistence lib này cũng chưa hỗ trợ Transaction.

Nếu có time, mình sẽ thử  làm thêm phần support các quan hệ 1 – 1, 1 – n xem thế nào.  Còn giờ, chia sẻ lên đây để mọi người cùng xem và đóng góp (nếu có thể)

SVN Source: http://svn6.assembla.com/svn/nttuyen/nttuyen-java-lib/tags/

Trong cuộc sống luôn có những điểm giới hạn. Nếu bước qua giới hạn này, cuộc đời bạn sẽ bước sang một trang mới!……

Sẽ có những giới hạn mà chúng ta cần cố gắng bước qua, và cũng có những giới hạn mà ta cần tự nhủ với mình rằng không bao giờ được đi qua nó…!

1. You think that inception = requirements, elaboration = design, and construction = implementation (that is, superimposing a waterfall lifecycle on to the UP)

2.***** You think that the purpose of elaboration is to fully and carefully define models, which are translated into code during construction

3.** You try to define most of the requirements before starting design or implementation

4. ***** You try to define most of the design before starting implementation; you try to fully define and commit to an architecture before iterative programming and testing.

5. A “long time” is spend doing requirements of design work before programming starts.

6. You believe that a suitable iteration length is four months long, rather than four weeks long(excluding project with hundreds of developers).

7. You thinks UML diagramming and design activities are a time to fully and accurately define design and models in great detail, and programming as a simple mechanical translation of these into code.

8. You think that adoping the UP means to do many of the possible activities and create many documents, and thinks of or experiences the UP as a formal, fussy process with many steps to be followed.

9.*** You try to plan a project in detail from start to finish; you try to speculatively predict all the iterations, and what should happen in each one.

10.*** You want believable plans and estimates for projects before the elaboration phase is finished.

Chuyên mục