Get user input in Java
This Java program prompts the user to enter the name by using System.out.print() method to keep the cursor on the same line. Then using the System.in object, along with the Inputst
Read tutorialTHE TUTORIAL LIBRARY
This Java program prompts the user to enter the name by using System.out.print() method to keep the cursor on the same line. Then using the System.in object, along with the Inputst
Read tutorialSometimes, you want the Database to do some computation for you rather than in the JVM, you might also create some kind of virtual column. You can use a SQL fragment (aka formula)
Read tutorialIn the above example, there is a unique valued property named socialSecurityNumber. It is defined by the class, as a natural key and a surrogate key named person_id, whose value is
Read tutorialIf you want the application to assign identifiers, as opposed to having Hibernate generate them, you can use the assigned generator. This special generator uses the identifier valu
Read tutorialFor databases that support identity columns (DB2, MySQL, Sybase, MS SQL), you can use identity key generation. For databases that support sequences (DB2, Oracle, PostgreSQL, Interb
Read tutorialThe hilo and seqhilo generators provide two alternate implementations of the hi/lo algorithm. The first implementation requires a "special" database table to hold the next availabl
Read tutorialorg.hibernate.EntityNameResolver is a contract for resolving the entity name of a given entity instance. The interface defines a single method resolveEntityName which is passed the
Read tutorialorg.hibernate.tuple.Tuplizer and its sub-interfaces are responsible for managing a particular representation of a piece of data given that representation's org.hibernate.EntityMode
Read tutorialHibernate guarantees equivalence of persistent identity (database row) and Java identity only inside a particular session scope. When you mix instances retrieved in different sessi
Read tutorialHibernate uses a fetching strategy to retrieve associated objects if the application needs to navigate the association. Fetch strategies can be declared in the O/R mapping metadata
Read tutorialThe table below lists the Hibernate Transaction Properties and their purpose. For easier understanding, and example is also provided for each property
Read tutorialThe table below lists the Hibernate Cache Properties and their purpose. For easier understanding, and example is also provided for each property.
Read tutorialOne example today. A better developer tomorrow.