Schlagwort-Archive: hibernate

How to log Hibernate SQL statements including binding parameter values with Logback / SLF4J

When working with Hibernate as a Java ORM Framework,  SQL becomes kind of a black box for developers. This is fine in most cases and is exactly the purpose of such frameworks, but the time comes when you want to … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | Kommentare deaktiviert für How to log Hibernate SQL statements including binding parameter values with Logback / SLF4J

Using Hibernate EventListeners to encrypt / decrypt properties of an entity based on other properties

Update 2012/07/24: It turns out my approach below is NOT GOOD! What I wanted to do is conditional encryption which is also asked in this Jasypt forum, where they say one should implement your own UserType. http://forum.jasypt.org/Hibernate-and-Conditional-encryption-td5586032.html The serious problem … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , , | Kommentare deaktiviert für Using Hibernate EventListeners to encrypt / decrypt properties of an entity based on other properties

Initializing Hibernate without XML

This article just shows a code snippet I have used for initializing Hibernate in pure JAVA code without the hibernate.xml which you would normally use. public void start(BundleContext context) throws Exception { initHibernate(context); }   private void initHibernate(BundleContext context) { … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | 2 Kommentare

Hibernate Transaction Handling in DWR

I am currently building a web-application using OSGI (HTTP Service) and Hibernate. I also use DWR for all the AJAX stuff in the application. DWR uses a special DWRServlet which handles the interaction of the browser with the server side. … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | 1.064 Kommentare

Resolving Hibernate exceptions with MySQL on Linux because of case-sensitive table names

Today I tried to deploy my application from my OSX dev machine to a server on Amazon EC2. I was running into exceptions like this: Caused by: org.hibernate.exception.SQLGrammarException: could not load an entity: [app.model.entities.Jobs#8] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.loader.Loader.loadEntity(Loader.java:1895) … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | 6 Kommentare