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.

Hibernate and Ibatis cache

We can use infinispan or ehcache/terracotta to easily use the second-level cache to accelerate hibernate applications, but ibatis only has a simple interface to implement caching. And hibernate kno

October 12, 2021By Simo Hibernate Cache, Hibernate, IbatisLeave a Comment

Hibernate – @uniqueConstraint Checks multiple tables in JPA

The @OneToMany building on campus has @OneToMany guest rooms.
Room names must be unique on campus
(e.g. campus-A, block-A, room-A and Campus-B, block-A, room-A should be able to store)

Is i

October 12, 2021By Simo Hibernate check, Hibernate, JPA, middle, multiple, uniqueconstraintLeave a Comment

WCF using MSMQ DTC – close NHibernate session

I have a WCF MSMQ service (hosted in a Windows service). There is TransactionScopeRequired attribute on my method.

I am using Nhibernate to convert my The data is saved to my database. I want

October 12, 2021By Simo Hibernate close, DTC, MSMQ, NHIBERNATE, session, Using, WCFLeave a Comment

NHIBERNATE 3.3: Does the composite-id generate a Key property?

I have read that this mapping is impossible in NHibernate 3.3:

****

Basically I need a composite id attribute to be automatically calculated by NH.

There may be one Tips for gett

October 12, 2021By Simo Hibernate 3.3, composite, Generate, ID, key, NHIBERNATE, Property, whetherLeave a Comment

Decimal field truncated using NHibernate 3.2 and FluentnHibernate 1.3

I have a situation where the decimal field is truncated to five decimal places when saving to the database. This happens even if I have mapped them with 10 decimal places precision.

I use NHi

October 12, 2021By Simo Hibernate 1.3, 3.2, decimal, Field, FluentnHibernate, NHIBERNATE, truncation, useLeave a Comment

Hibernate – How to set up the biggest result in DetachedCriteria?

I am using DetachedCriteria, I only want the first result of the query, so I want to do something like LIMIT in DetachedCriteria 1. When I search Google, I found setMaxResult but It’s standard.

October 12, 2021By Simo Hibernate DetachedCriteria, Hibernate, How, maximum, Results, settingLeave a Comment

TSQL – Should you use NHIBERNATE and SQL Server 2008 external connection extraction?

When extracting external connections, the Nhibernate documentation says:

If your database supports ANSI or
Oracle style outer joins, outer join
fetching might increase performance by
limit

October 12, 2021By Simo Hibernate connection, external, extraction, NHIBERNATE, server, should, SQL, TSQL, useLeave a Comment

NHIBERNATE: Insert and Update Date

What is the best way to handle InsertDate (a.k.a CreateDate) and UpdateDate columns using NHibernate?

For example:

public class Customer
{
public virtual string Name {get; set; }
pub

October 12, 2021By Simo Hibernate Date, INSERT, NHIBERNATE, UpdateLeave a Comment

Hibernate SQL query does not correctly map Boolean value?

Run the following through any SQL client

SELECT FALSE, TRUE; return

f, t But this SQL query:

SQLQuery qry = session.createSQLQuery(“SELECT FALSE, TRUE;”);
Object[] result = (Objec

October 12, 2021By Simo Hibernate boolerance, correct, Hibernate, Mapping, no, query, SQLLeave a Comment

Polymorphism ‘get’ uses hibernate, multi-one, inheritancetype.joined

I have something like this..

A car class, one seat with many seats. Seat has a subclass LeatherSeat.

public class Car {
private Seat seat;
…
@ManyToOne(fetch = FetchType.LAZY)
pub

October 12, 2021By Simo Hibernate Hibernate, inheritancetype, inheritancetype.joined, joined, Multi-object, Multi-one, useLeave a Comment

Posts navigation

Page 1 Page 2 Page 3 Page 4 … 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