Tag: Hibernate

Technologies for development of data business logic in Java: Hibernate and SPL

To achieve the business logic focused on database in Java, three key elements are required: the objectification of the database table, the ability to calculate the structured data, and the ability to process the flow. Hibernate is an old and well-established technology, and has long since provided the three elements, and achieved a large number of data business logics in many projects. SPL is a new data computing language. Likewise, SPL has the said elements, which can also be used to achieve data business logic. This article will compare them in many aspects so as to find out the one with more efficiency in developing the data business logic. As for other related technologies (such as MyBatis, Querydsl, JOOQ), they are not discussed in this article for reasons like code coupling, computing capability and maturity.

Basic features

Programming style

Hibernate is provided with two programming styles that differ greatly: one belongs to the object-oriented programming, which uses Java's EntityBean and if/switch/while/for statements to process the structured data objects and the flow; the other uses HQL that is close to the programming style of SQL to compute the structured data. In contrast, SPL greatly simplifies the object orientation, which has the concept of objects, and can use the dot to access attributes and perform multi-step calculation. However, SPL cannot be regarded as a complete object-oriented language for it does not have related contents like inheritance and overloading. continue reading →