我在javascript中使用google map api,我需要通过来自restful service的值更改缩放和居中,我可以使用setCenter和setZoom函数来实现.
但问题是,地图正在重新加载,我的老板希望它用动画来聚焦那个位置而不是通过重新加载地图是否有这样做?
我有 3 个类是:
@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public abstract class Tag {
@Id
private String id;
private String name;
}
@Entity
@Table(uniqueConstraints=
@UniqueConstraint(columnNames={"name"}))
public class SystemTag extends Tag {
}
@Entity
@Table(uniqueConstraints=
@UniqueConstraint(columnNames = {"name", "user"}))
public class CustomTag extends Tag{
@ManyToOne
private User user;
}
Run Code Online (Sandbox Code Playgroud)
所以我想对系统标签使用唯一名称,对自定义标签使用唯一名称-用户对(多个用户可以创建相同的标签)但我收到两个警告,如下所示:
<timestamp> WARN AnnotationBinder:601 - HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: <domain>.CustomTag
<timestamp> WARN AnnotationBinder:601 - HHH000139: Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: <domain>.SystemTag
Run Code Online (Sandbox Code Playgroud)
它允许我为同一用户创建两个同名的系统标签和两个同名的自定义标签。 …