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

Category: Hibernate

Hibernate is an open source object-relational mapping framework. It encapsulates JDBC very lightweight objects. It establishes a mapping relationship between POJOs and database tables. It is a fully automatic orm framework. Hibernate can automatically generate SQL statements. Automatic execution allows Java programmers to use object programming thinking to manipulate the database as they like. Hibernate can be used in any occasion where JDBC is used, either in Java client programs or in Servlet/JSP Web applications. The most revolutionary thing is that Hibernate can replace CMP in the J2EE architecture using EJB. , To complete the important task of data persistence.

How to delete a collection in Hibernate intermediate?

Suppose I have two entities, a post and a comment (in ColdFusion):

component persistent=” true” table=”post”
{
property name=”Id” fieldtype=”id”;
property name=”Comments” fieldtype=”one-to-

October 12, 2021By Simo Hibernate Cascaded, collection, delete, Hibernate, HowLeave a Comment

What is the problem with NHIBERNATE solves?

I have seen some jobs that require nhibernate knowledge, and a large number of problems on the stack. I found another problem, pointing to Summer Of NHibernate, and now I am watching the video. But

October 12, 2021By Simo Hibernate NHIBERNATE, problem, solve, whatLeave a Comment

Hibernate uses @Dynamicinsert and @Dynamicupdate to generate dynamic SQL statements

In using Hibernate4 recently, I found two very mysterious annotations @DynamicInsert and @DynamicUpdate

If it is in the configuration file That is, dynamic-insert and dynamic-update

The

October 12, 2021By Simo Hibernate Dynamicinsert, Dynamics, Dynamicupdate, Generation, Hibernate, SQL, Statements, utilizationLeave a Comment

Hibernate – Desire to get the entire object tree in Grails

So I have some objects in the domain, and they have a hasMany relationship, as shown below

Class Car {
String name
SortedSet tires = [] as SortedSet
static hasMany = [tires: Tire]
}
Class

October 12, 2021By Simo Hibernate Objects, TreeLeave a Comment

GRAILS default Hibernate cache configuration

The Grails 2.0.0 reference manual shows the following as the default Hibernate cache configuration

hibernate {
cache.use_second_level_cache=true
cache.use_query_cache=true
cache.provider_c

October 12, 2021By Simo Hibernate Cache, configuration, default, Grails, HibernateLeave a Comment

Hibernate: How to use a comment to specify a custom sequence generator class name?

I want to use comments to specify the following hbm configuration:

I don’t know how to provide the class name< /p>

@GeneratedValue(strategy=GenerationType.SEQUENCE, generator=”SEQ_STORE

October 12, 2021By Simo Hibernate beache, Born, class, customized, Hibernate, How, Name, Notes, Sequence, specified, useLeave a Comment

Hibernate – avoids cross-table external connections when connecting inherited using the Spring Data JPA connection

Consider the following classes in a Spring Data JPA (Hibernate) application:

@Entity
@Inheritance (strategy = InheritanceType.JOINED)
@Table(name = “person”)
public class Person {}
@Entity
@T

October 12, 2021By Simo Hibernate avoid, connection, cross, data, Hibernate, inherit, JPA, outside, spring, table, timeLeave a Comment

NHibernate mapping system.type

When I map an entity with a System.Type type attribute, I know that NHibernate maps this to DbType.String, saves the assembly qualified name, and I can see that in the table, the type The column co

October 12, 2021By Simo Hibernate Mapping, NHIBERNATE, system, System.Type, typeLeave a Comment

Hibernate 4.1.2 hhh000342: Unable to get a connection with query metadata: No drivers suitable for JDBC: HSQLDB: MEM: TEST

What did I do wrong?

My persistence.xml

org.hibernate.ejb.HibernatePersistence
User

My code

…
Persistence.cre

October 12, 2021By Simo Hibernate 4.1.2, acquisition, connection, data, driver, HHH, hhH000342, Hibernate, HSQLDB, JDBC, MEM, Meta, not found, query, suitable, test, UnableLeave a Comment

NHibernate stateless session – What is the data alias?

NHibernate documents applicable to stateless session interface states, including:

Stateless sessions are vulnerable to < strong>data aliasing effects, due to the
lack of a first-level cache.

October 12, 2021By Simo Hibernate alias, data, Effect, NHIBERNATE, session, status, whatLeave a Comment

Posts navigation

Page 1 … Page 6 Page 7 Page 8 Page 9
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