Merge branch '13.2.1_delivery' into development
Former-commit-id:9595fefb4b
[formerlyd997d99f05
] [formerlyf380667b34
[formerly 815e8b741b173044f8f20f537674d685b50ed6af]] Former-commit-id:f380667b34
Former-commit-id:930f1f13c0
This commit is contained in:
commit
24ff063657
4 changed files with 20 additions and 11 deletions
|
@ -51,6 +51,7 @@ import com.raytheon.uf.viz.core.IGraphicsTarget;
|
||||||
import com.raytheon.uf.viz.core.VizApp;
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
import com.raytheon.uf.viz.core.drawables.ColorMapLoader;
|
import com.raytheon.uf.viz.core.drawables.ColorMapLoader;
|
||||||
import com.raytheon.uf.viz.core.drawables.ColorMapParameters;
|
import com.raytheon.uf.viz.core.drawables.ColorMapParameters;
|
||||||
|
import com.raytheon.uf.viz.core.drawables.ColorMapParameters.PersistedParameters;
|
||||||
import com.raytheon.uf.viz.core.drawables.IRenderable;
|
import com.raytheon.uf.viz.core.drawables.IRenderable;
|
||||||
import com.raytheon.uf.viz.core.drawables.PaintProperties;
|
import com.raytheon.uf.viz.core.drawables.PaintProperties;
|
||||||
import com.raytheon.uf.viz.core.exception.VizException;
|
import com.raytheon.uf.viz.core.exception.VizException;
|
||||||
|
@ -595,6 +596,13 @@ public abstract class AbstractGridResource<T extends AbstractResourceData>
|
||||||
// reuse the old parameters. This is useful when the resource is
|
// reuse the old parameters. This is useful when the resource is
|
||||||
// sharing capabilities, for example in an FFGVizGroupResource.
|
// sharing capabilities, for example in an FFGVizGroupResource.
|
||||||
newParameters = oldParameters;
|
newParameters = oldParameters;
|
||||||
|
} else if (oldParameters != null) {
|
||||||
|
newParameters.setColorMapName(oldParameters.getColorMapName());
|
||||||
|
newParameters.setColorMap(oldParameters.getColorMap());
|
||||||
|
PersistedParameters persisted = oldParameters.getPersisted();
|
||||||
|
if (persisted != null) {
|
||||||
|
newParameters.applyPersistedParameters(persisted);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return newParameters;
|
return newParameters;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,8 +87,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
|
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
|
||||||
public abstract class ExtensibleObjectType {
|
public abstract class ExtensibleObjectType {
|
||||||
|
|
||||||
@BatchSize(size = 15)
|
@BatchSize(size = 500)
|
||||||
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
@JoinTable(inverseJoinColumns = @JoinColumn(name = "child_slot_key"))
|
@JoinTable(inverseJoinColumns = @JoinColumn(name = "child_slot_key"))
|
||||||
@XmlElement(name = "Slot")
|
@XmlElement(name = "Slot")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
|
|
|
@ -100,45 +100,45 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
RoleType.class })
|
RoleType.class })
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
@Entity
|
@Entity
|
||||||
@Cache(region="registryObjects",usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
|
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
|
||||||
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
||||||
@Table(name = "RegistryObject")
|
@Table(name = "RegistryObject")
|
||||||
public class RegistryObjectType extends IdentifiableType {
|
public class RegistryObjectType extends IdentifiableType {
|
||||||
@XmlElement(name = "Name")
|
@XmlElement(name = "Name")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
protected InternationalStringType name;
|
protected InternationalStringType name;
|
||||||
|
|
||||||
@XmlElement(name = "Description")
|
@XmlElement(name = "Description")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
protected InternationalStringType description;
|
protected InternationalStringType description;
|
||||||
|
|
||||||
@XmlElement(name = "VersionInfo")
|
@XmlElement(name = "VersionInfo")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Cascade(value = { org.hibernate.annotations.CascadeType.DETACH })
|
@Cascade(value = { org.hibernate.annotations.CascadeType.DETACH })
|
||||||
@ManyToOne
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
protected VersionInfoType versionInfo;
|
protected VersionInfoType versionInfo;
|
||||||
|
|
||||||
@XmlElement(name = "Classification")
|
@XmlElement(name = "Classification")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
|
@Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
|
||||||
org.hibernate.annotations.CascadeType.DETACH })
|
org.hibernate.annotations.CascadeType.DETACH })
|
||||||
@ManyToMany
|
@ManyToMany(fetch = FetchType.LAZY)
|
||||||
protected Set<ClassificationType> classification;
|
protected Set<ClassificationType> classification;
|
||||||
|
|
||||||
@XmlElement(name = "ExternalIdentifier")
|
@XmlElement(name = "ExternalIdentifier")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
|
@Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
|
||||||
org.hibernate.annotations.CascadeType.DETACH })
|
org.hibernate.annotations.CascadeType.DETACH })
|
||||||
@ManyToMany
|
@ManyToMany(fetch = FetchType.LAZY)
|
||||||
protected Set<ExternalIdentifierType> externalIdentifier;
|
protected Set<ExternalIdentifierType> externalIdentifier;
|
||||||
|
|
||||||
@XmlElement(name = "ExternalLink")
|
@XmlElement(name = "ExternalLink")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
|
@Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
|
||||||
org.hibernate.annotations.CascadeType.DETACH })
|
org.hibernate.annotations.CascadeType.DETACH })
|
||||||
@ManyToMany
|
@ManyToMany(fetch = FetchType.LAZY)
|
||||||
protected Set<ExternalLinkType> externalLink;
|
protected Set<ExternalLinkType> externalLink;
|
||||||
|
|
||||||
@XmlAttribute
|
@XmlAttribute
|
||||||
|
|
|
@ -24,6 +24,7 @@ import java.io.Serializable;
|
||||||
|
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.FetchType;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.ManyToOne;
|
import javax.persistence.ManyToOne;
|
||||||
|
@ -83,7 +84,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
// "slot_join_slot", joinColumns = @JoinColumn(name = "parent_slot_key",
|
// "slot_join_slot", joinColumns = @JoinColumn(name = "parent_slot_key",
|
||||||
// referencedColumnName = "key"), inverseJoinColumns = @JoinColumn(name =
|
// referencedColumnName = "key"), inverseJoinColumns = @JoinColumn(name =
|
||||||
// "child_slot_key", referencedColumnName = "key")))
|
// "child_slot_key", referencedColumnName = "key")))
|
||||||
@Cache(region="registryObjects",usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
|
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
|
||||||
@Table(name = "Slot")
|
@Table(name = "Slot")
|
||||||
public class SlotType extends ExtensibleObjectType implements Serializable {
|
public class SlotType extends ExtensibleObjectType implements Serializable {
|
||||||
|
|
||||||
|
@ -94,7 +95,7 @@ public class SlotType extends ExtensibleObjectType implements Serializable {
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
private Integer key;
|
private Integer key;
|
||||||
|
|
||||||
@ManyToOne(cascade = CascadeType.ALL)
|
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
||||||
@XmlElement(name = "SlotValue")
|
@XmlElement(name = "SlotValue")
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
protected ValueType slotValue;
|
protected ValueType slotValue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue