Resolve warnings in the Hibernate log (#542)

This commit is contained in:
Shicong Huang 2020-04-03 18:04:55 -04:00 committed by GitHub
parent bf4659f11c
commit 1ded33ecea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -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)

View file

@ -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>