Home » Archives for Nikos Maravitsas » Page 8

Author Archives: Nikos Maravitsas

Nikos has graduated from the Department of Informatics and Telecommunications of The National and Kapodistrian University of Athens. During his studies he discovered his interests about software development and he has successfully completed numerous assignments in a variety of fields. Currently, his main interests are system’s security, parallel systems, artificial intelligence, operating systems, system programming, telecommunications, web applications, human – machine interaction and mobile development.

Hibernate Query Language Example

In this example we are going to see how to use Hibernate Query Language (HQL). This the query language created for Hibernate. It’s syntax is very similar to a normal SQL language but instead of tables it deals with classes and instead of columns it deals with properties or class attributes. And that’s what makes it really suitable to use ...

Read More »

Hibernate Connection Pool configuration with C3P0 Example

This is a tutorial on how to use C3P0 connection pool framework with Hibernate. Basically what a connection pool does is to create a number of connections (a pool of connections) with the database server and keep them idle. Every time a query comes up the application picks one of the pooled connections and uses that to interact with the ...

Read More »

Hibernate Logging Configuration – SLF4J + Log4j and Logback

In this example we are going to see how to configure Logging in Hibernate. SLF4J (Simple Logging Facade for Java) is a very nice logging framework that Hibernate uses, in order to output your logs using your favorite logging tool ( log4j, JCL, JDK logging, logback) to your preferred location. We are going to use SLF4J along with log4j and Logback. ...

Read More »

Hibernate Cascade example

In this tutorial we are going to see the use of  the cascade feature of relational databases and how it is applied in Hibernate. This tutorial is based on the previous Hibernate One-to-Many Relationship Example (XML Mapping and Annotation). You can download the Eclipse project from there. So these are the tools we are going to use on a Windows 7 ...

Read More »

Hibernate Many-to-Many Relationship with Join Table Example

In the previous tutorial, Hibernate Many-to-Many Relationship Example (XML Mapping and Annotation), we saw how use Hibernate in order to work with classes that have many-to-many relationships. I would strongly recommend to read that tutorial before proceeding to this one. For this tutorial we are going to see how to map the classes with Annotations. So these are the tools ...

Read More »