Add Hibernate 7 batches 2-5: mapping styles, JPA annotations, natural IDs, @Immutable, stored procedures, in-memory test databases, JNDI mocking, proxies, associations, temporal mapping and named queries (Hibernate 7.4.5.Final + Spring Boot 4.1.1 + JDK 25)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="7.0">
|
||||
<entity class="com.ankurm.hibernatedemo.mappingstyle.MappingXmlNaturalIdEntity" access="FIELD">
|
||||
<table name="mapping_xml_naturalid_widgets"/>
|
||||
<attributes>
|
||||
<id name="id">
|
||||
<generated-value strategy="IDENTITY"/>
|
||||
</id>
|
||||
<natural-id mutable="false">
|
||||
<basic name="sku">
|
||||
<column name="sku" unique="true" nullable="false"/>
|
||||
</basic>
|
||||
</natural-id>
|
||||
<basic name="name"/>
|
||||
</attributes>
|
||||
</entity>
|
||||
</entity-mappings>
|
||||
Reference in New Issue
Block a user