Skip to content

Commit 4f72533

Browse files
committed
HHH-9998 - Continue documentation TLC - mapping basic-types
1 parent 84987f4 commit 4f72533

31 files changed

+911
-61
lines changed

documentation/src/main/docbook/manual/en-US/chapters/domain/DomainModel.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
<para>
3535
This chapter will describe the characteristics of a persistable domain model. However, it will not discuss
3636
defining the mapping for the domain model. That is a massive topic in its own right and is the subject of an
37-
entire dedicated manual. See the <citetitle>Hibernate - Domain Model Mapping</citetitle> documentation
38-
from the <link xlink:href="http://hibernate.org/documentation">documentation site</link>.
37+
entire dedicated manual. See the <citetitle>Hibernate Domain Model Mapping Guide</citetitle> from the
38+
<link xlink:href="http://hibernate.org/documentation">documentation site</link>.
3939
</para>
4040

4141
<section xml:id="domainmodel-pojo">

documentation/src/main/docbook/mapping/en-US/Hibernate_Mapping.xml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,26 @@
4848
<xi:include href="chapters/basic/Basic_Types.xml" />
4949
<xi:include href="chapters/composition/Composition.xml" />
5050
<xi:include href="chapters/collection/Collection.xml" />
51+
<xi:include href="chapters/entity/Entity.xml" />
52+
<xi:include href="chapters/id/Identifiers.xml" />
53+
<xi:include href="chapters/natural_id/Natural_Id.xml" />
5154

5255
<!--
53-
<xi:include href="chapters/entity/Entity.xml" />
54-
<xi:include href="chapters/id/Identifiers.xml" />
5556
<xi:include href="chapters/association/Associations.xml" />
56-
<xi:include href="chapters/natural_id/Natural_Id.xml" />
57+
<xi:include href="chapters/secondary/Secondary_Tables.xml" />
58+
59+
<xi:include href="chapters/constraints/Database_Constraints.xml" /> pk, fk, index, check, unique
60+
<xi:include href="chapters/auxiliary/Auxiliary_DB_Objects.xml" />
5761
58-
<xi:include href="chapters/generation/Generated_attributes.xml" />
5962
<xi:include href="chapters/access/Attribute_Access.xml" />
6063
<xi:include href="chapters/overrides/Mapping_Overrides.xml" /> AttributeOverrides/AssociationOverrides
64+
65+
<xi:include href="chapters/generation/Generated_attributes.xml" />
66+
67+
columns, formulas, read/write-fragments
68+
6169
<xi:include href="chapters/naming/Naming_Strategies.xml" />
70+
<xi:include href="chapters/quoting/SQL_Identifier_Quoting.xml" />
6271
-->
6372

6473
<!-- appendices? -->

documentation/src/main/docbook/mapping/en-US/chapters/basic/Basic_Types.xml

Lines changed: 432 additions & 25 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
create table step(
2+
...
3+
instruction BLOB not null,
4+
...
5+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@Entity
2+
public class Step {
3+
...
4+
@Lob
5+
@Basic
6+
public Blob instructions;
7+
...
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@Entity
2+
public class Step {
3+
...
4+
@Lob
5+
@Basic
6+
public byte[] instructions;
7+
...
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
create table product(
2+
...
3+
description CLOB not null,
4+
...
5+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@Entity
2+
public class Product {
3+
...
4+
@Lob
5+
@Basic
6+
public Clob description;
7+
...
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@Entity
2+
public class Product {
3+
...
4+
@Lob
5+
@Basic
6+
public String description;
7+
...
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@Entity
2+
public class Product {
3+
...
4+
@Lob
5+
@Basic
6+
public char[] description;
7+
...
8+
}

0 commit comments

Comments
 (0)