Skip to main content
Erschienen in:
Buchtitelbild

2016 | OriginalPaper | Buchkapitel

1. An Introduction to Hibernate 5

verfasst von : Joseph B. Ottinger, Jeff Linwood, Dave Minter

Erschienen in: Beginning Hibernate

Verlag: Apress

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Most significant development projects involve a relational database. The mainstay of most commercial applications is the large-scale storage of ordered information, such as catalogs, customer lists, contract details, published text, and architectural designs.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Anhänge
Nur mit Berechtigung zugänglich
Fußnoten
1
A relational database is a collection of sets of data items, each of which is formally described and organized. Rules can be put into place for the data such that it can be validated, and indexes can be created such that the data can be queried and updated quickly and safely.
 
2
Well, perhaps an ideal world in which an ORM is used for data access. But in this book this can be assumed to be the case.
 
3
See http://​docs.​jboss.​org/​hibernate/​orm/​5.​2/​quickstart/​html_​single/​#hibernate-gsg-tutorialbasic-entity for more details. Short form: Hibernate uses reflection to construct an object before data population. The shortest (and quickest) path to doing that is with a no-argument constructor.
 
4
For more on automatic resource management, introduced in Java 7, see the Java tutorial’s reference on it: http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html .
 
5
Incidentally, if you’re interested, “immeasurably” works out to thirty-two lines. The old way, without ARM, had thirty-two lines of code dedicated to safe cleanup. I don’t know about you, but I like this code better. Not only is it shorter, but it’s harder to mess up.
 
6
A common criticism of Java is that a “Hello, World” application can take seconds to run, because the VM startup is part of the running time. However, VM startup itself is a rare occurrence for most apps – it happens only once per run, after all – and in an app that runs for hours, days, or months, the time the VM takes to start is not relevant. The criticism is misplaced, unless your business’s purpose is running “Hello, World” in the shortest time possible.
 
7
Go figure; who knew coders like for things to be code? (Besides coders, I mean.)
 
Metadaten
Titel
An Introduction to Hibernate 5
verfasst von
Joseph B. Ottinger
Jeff Linwood
Dave Minter
Copyright-Jahr
2016
Verlag
Apress
DOI
https://doi.org/10.1007/978-1-4842-2319-2_1