請先看以下代碼:
public abstract class A
{
@Id
@GenericGenerator(name="assigned", strategy="assigned")
@GeneratedValue(generator="assigned")
@Column(nullable=false,length=100)
private String Id;
........
}
public class B extends A
{
}
問題:
B 可以繼承A關於Id的注解嗎?