mirror of
https://github.com/google/nomulus.git
synced 2025-05-21 19:59:34 +02:00
Resolve warnings in the Hibernate log (#542)
This commit is contained in:
parent
bf4659f11c
commit
1ded33ecea
2 changed files with 3 additions and 7 deletions
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
package google.registry.schema.tld;
|
package google.registry.schema.tld;
|
||||||
|
|
||||||
|
import google.registry.model.ImmutableObject;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
|
@ -26,7 +27,7 @@ import javax.persistence.Id;
|
||||||
* <p>These are not persisted directly, but rather, using {@link PremiumList#getLabelsToPrices()}.
|
* <p>These are not persisted directly, but rather, using {@link PremiumList#getLabelsToPrices()}.
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
public class PremiumEntry implements Serializable {
|
public class PremiumEntry extends ImmutableObject implements Serializable {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
|
|
|
@ -4,15 +4,10 @@
|
||||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm
|
||||||
http://xmlns.jcp.org/xml/ns/persistence/orm_2_2.xsd"
|
http://xmlns.jcp.org/xml/ns/persistence/orm_2_2.xsd"
|
||||||
version="2.2">
|
version="2.2">
|
||||||
<embeddable class="org.joda.money.Money" access="FIELD">
|
<embeddable class="org.joda.money.Money" access="FIELD" />
|
||||||
<attributes>
|
|
||||||
<embedded name="money" access="FIELD"/>
|
|
||||||
</attributes>
|
|
||||||
</embeddable>
|
|
||||||
<embeddable class="org.joda.money.BigMoney" access="FIELD">
|
<embeddable class="org.joda.money.BigMoney" access="FIELD">
|
||||||
<attributes>
|
<attributes>
|
||||||
<basic name="amount" access="FIELD"/>
|
<basic name="amount" access="FIELD"/>
|
||||||
<basic name="currency" access="FIELD"/>
|
|
||||||
</attributes>
|
</attributes>
|
||||||
</embeddable>
|
</embeddable>
|
||||||
</entity-mappings>
|
</entity-mappings>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue