Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: Hibernate

ConfigurationException: CFG.xml resources cannot be found in the project root folder [hibernate.cfg.xml]

I have the hibernate.cfg.xml file in the project root folder.

If the application I run contains:

SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); I

October 21, 2021By Simo XML CFG, CFG.XML, Hibernate, XMLLeave a Comment

Despite the use of lazy fetch, Hibernate JPA OnToone is still inquiring

The problem I encountered is that Hibernate queries a class on the other side of the lazy onetoone relationship.

Query top_players (depending on cache settings) Query through the mapping tabl

October 12, 2021By Simo Hibernate Despite, FETCH, Hibernate, JPA, lazy, OneToone, still inquiriesLeave a Comment

Hibernate – If Cascade.Persist and Cascade.Remove are used together in the parent entity in the HiberNet, Cascade deletes don’t work.

I have a table relationship definition as shown below, I am trying to cascade persistence and delete from Entity2 (table 2) means deleting a record from table2 should delete the entry in table 3, a

October 12, 2021By Simo Hibernate Cascade, Cascade.Pascade, Cascade.remove, Casual, entity, father, Hibernate, Hibernet, if, Perscade, removeLeave a Comment

Hibernate – JPA @LOB attribute encoding cannot be used with PostgreSQL text

JPA Mapping

I am using JPA and Hibernate. I have an entity with @Lob attributes

@Column(nullable=false)
@Lob
private String text; I am using PostgreSQL 8.4 and entities are correctly ma

October 12, 2021By Simo Hibernate attribute, can't, encoding, Hibernate, JPA, LOB, PostgreSQL, Text, Together, useLeave a Comment

Hibernate – GRAILS Domain Relationship

I have a class called School, which has many students, so now when I use School.read to read the school instance, I don’t want all students Have been taken out eagerly, so I changed the laziness of

October 12, 2021By Simo Hibernate domain name, Grails, Hibernate, relationshipLeave a Comment

Hibernate – How do I work in the JPQL WHERE clause?

How to evaluate entity comparison (equal) statements in JPQL: Is it through identity comparison, equals() or something else?

I spent a few hours Googling and completed the Hibernate and JPA s

October 12, 2021By Simo Hibernate clause, comparison, entity, Hibernate, How, JPQL, Medium, PlayLeave a Comment

Problems when using Hibernate and SQL Server 2008

I have a problem with Hibernate and SQL Server 2008. When I try to save an object to the database, Hibernate will throw this:

could not retrieve snapshot: com.my.MyClass
Caused by: com.micros

October 12, 2021By Simo Hibernate appears, Hibernate, problem, server, SQL, UsingLeave a Comment

Hibernate – @AttributeOverride does not use inheritance

I tried to change the column name in the subclass table, but I will not change it with the @AttributeOverride annotation.

@ Entity @Table(name=”emp”)
@Inheritance(strategy=InheritanceType.TAB

October 12, 2021By Simo Hibernate AttributeOverride, does not make, Hibernate, inheritanceLeave a Comment

Hibernate inheritance – Reference entity using @mappedsuperclass comment

@MappedSuperclass
public abstract class AbstractBaseModel{ }
@MappedSuperclass
public class Person extends AbstractBaseModel {}
@Entity
public class APerson extends Person {}
@Entity
public class B

October 12, 2021By Simo Hibernate entity, Hibernate, inheritance, mappedsuperclass, Note, reference, useLeave a Comment

Use Hibernate JPA 2.1 to deploy applications to IBM WebSphere will generate nullpointerException

We are trying to deploy a Java 7 Spring MVC application to IBM WebSphere 8.5.5.2 server using Hibernate. The application is running fine on the Tomcat server, but we cannot run it in WebSphere .

October 12, 2021By Simo Hibernate 2.1, Applications, Deploy, Generation, Hibernate, IBM, JPA, NullPointersException, Programs, Using, WebSphere, willLeave a Comment

Posts navigation

Page 1 Page 2 … Page 6
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress