Some Trials & a lot of Errors
I tried a bunch of framework and other language and I usually feel overwhelm when its time to do something real with what I've learned. So that why I created this site, to write my progress and help some noob like me that stumble into the sames problems.
Browse: Home / hibernate

hibernate

Solving LazyInitializationException with sonar rules @Transactional method called from another method doesn’t obtain a transaction

By Chris on May 12, 2021

We recently added a feature that allowed direct modification on our content for some client vs using the same path (queues) that the batched content is using. Our user were really happy with it, but after our team implemented the new feature, we started having some LazyInitializationException. exception for that problem org.hibernate.LazyInitializationException: could not initialize […]

Posted in java | Tagged Exception, hibernate, java, LazyInitializationException | Leave a response

Hibernate Session saveOrUpdate does not update

By Chris on September 7, 2014

Another problem I’ve it recently with saveOrUpdate that can be fix by using the same saveOrUpdate but give the class name. Using the session.saveOrUpdate(myObject) might give you a unknown entity while using the same method with the class name in parameter won’t. session.saveOrUpdate(myObject); //give a unknown entity session.saveOrUpdate(“MyObjectClassName”, MyObject); //Work The important difference between the […]

Posted in db, prog | Tagged db, hibernate | Leave a response

Hibernate Oracle to MySQL: changing the generator class

By Chris on July 9, 2014

Really quick post to a problem I’ve got un hibernate when converting to mySQL, I’ve found that the problem was because we were using a generator class “sequence” and in mySQL we needed to use “assigned” or “increment” instead. Note you might not have that problem in your project but that was preventing me from […]

Posted in db | Tagged hibernate, java, mysql, oracle | Leave a response

Tags

2018 2022 about app apparment arraylist blog book books condo date db errors gifts hibernate ideas inspiration java java.util.List jboss linux List mongodb MongoRepository MongoTemplate motivation mysql netstat oracle port productivity real estate reviews school Seth Godin sql String struts students The 100 days project The Practice to_date wedding welcome windows

Recent Comments

  • kevin on Oracle have no Boolean, how to fix this

Calendar

May 2022
MonTueWedThuFriSatSun
 1
2345678
9101112131415
16171819202122
23242526272829
3031 
« Apr  

Archives

  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • March 2021
  • February 2021
  • May 2020
  • January 2019
  • December 2018
  • July 2018
  • April 2018
  • January 2018
  • October 2014
  • September 2014
  • August 2014

Copyright © 2022 Some Trials & a lot of Errors.

Powered by WordPress and Hybrid.