Skip to main content

2016 | OriginalPaper | Buchkapitel

5. An Overview of Mapping

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

The purpose of Hibernate is to allow you to treat your database as if it stores Java objects. However, in practice, relational databases do not store objects – they store data in tables and columns. Unfortunately, there is no simple way to correlate the data stored in a relational database with the data represented by Java objects.

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!

Fußnoten
1
If there were, books like this one probably wouldn’t exist.
 
2
When comparing objects for equivalence, use equals(). It’s like comparing two doorknobs: are the two like each other, or are they the same doorknob? The equals() method checks to see if they’re alike. The == operator checks to see if they’re the same.
 
3
There are conditions for this. In most of the examples we’ve seen, where the majority of columns are accessed directly via their attribute references, lazy loading is very much the norm regardless of type. When in doubt, specify and test.
 
4
Cardinality refers to numbering, so cardinality in relationships indicates how many of each participant is being referred to by either side of the relationship.
 
5
This is why otherwise fantastic tools like Hibernate haven’t replaced good database analysts.
 
6
We haven’t actually spent much time in XML configuration for a very good reason: most people don’t use it in the real world unless they absolutely have to. It’s also excessively verbose, especially compared to the annotations.
 
Metadaten
Titel
An Overview of Mapping
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_5