有没有办法自动(或通过一键式触发器)从任何 IDE 中的类源代码中删除所有注释?
我的具体要求是将所有实体 bean 转换为纯 JDBC 控制器将使用的未注释 POJO。
示例代码片段:
@Entity
@NamedQueries({
@NamedQuery(name = "Gpu.findAll", query = "SELECT g FROM GPU g"),
@NamedQuery(name = "Gpu.findByArascl", query = "SELECT g FROM GPU g WHERE g.arascl = :arascl"),
@NamedQuery(name = "Gpu.findByUnvan", query = "SELECT g FROM GPU g WHERE g.unvan = :unvan")})
public class GPU implements Serializable {
@Id
@Basic(optional = false)
@Size(min = 1, max = 15)
@Column(nullable = false, length = 15)
private String arascl;
@Column(name = "BAGLI_CALISAN_SAYISI")
private int bagliCalisanSayisi;
@Size(max = 24)
@Column(name = "BOLGE_TANIMI", length = 24)
private String bolgeTanimi;
@Size(max = 35)
@Column(length = 35)
private String eladi;
private Integer elmkod;
@Size(max = 30)
@Column(length = 30)
private String elsoy;
@Size(max = 30)
@Column(name = "SUBE_TANIMI", length = 30)