Method threw 'org.hibernate.LazyInitializationException' exception
I am getting LazyInitializationException while using createQuery(), load() or get() methods. Configuration is based on annotations. This is exception which I am getting: Method threw 'org.hibernate.LazyInitializationException' exception. Cannot evaluate lt.package.to.Setting_$$_jvstfff_0.toString() Schema structure: CREATE TABLE IF NOT EXISTS `Settings` ( `key` varchar(255) COLLATE utf8_lithuanian_ci NOT NULL, `value` varchar(255) COLLATE utf8_lithuanian_ci DEFAULT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_lithuanian_ci; PersistenceConfig.java @Configuration @
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.