下面列出了javax.persistence.JoinTable#javax.xml.bind.annotation.XmlTransient 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public boolean run(
Outline outline,
Options opt,
ErrorHandler errorHandler ) {
for( ClassOutline ci : outline.getClasses() ) {
JDefinedClass impl = ci.implClass;
if (ci.getSuperClass() == null) {
JVar $loc = impl.field(JMod.PROTECTED, Locator.class, fieldName);
$loc.annotate(XmlLocation.class);
$loc.annotate(XmlTransient.class);
impl._implements(Locatable.class);
impl.method(JMod.PUBLIC, Locator.class, "sourceLocation").body()._return($loc);
JMethod setter = impl.method(JMod.PUBLIC, Void.TYPE, "setSourceLocation");
JVar $newLoc = setter.param(Locator.class, "newLocator");
setter.body().assign($loc, $newLoc);
}
}
return true;
}
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL)
@JoinTable(name = "role_mappings", joinColumns = {
@JoinColumn(name = "user_id", nullable = false, updatable = false) },
inverseJoinColumns = { @JoinColumn(name = "role",
nullable = false, updatable = false) })
public List<Role> getRoles() {return _roles;}
@XmlTransient
public String getFilename() {
final String filename = bundle.getArtifactId() + "-" + versionMetadata.getVersion();
switch (bundle.getBundleType()) {
case NIFI_NAR:
return filename + ".nar";
case MINIFI_CPP:
// TODO should CPP get a special extension
return filename;
default:
throw new IllegalStateException("Unknown bundle type: " + bundle.getBundleType());
}
}
public @XmlTransient @Nullable QName getFirstDetailEntryName() {
DetailType dt = getDetail();
if (dt != null) {
Node entry = dt.getDetail(0);
if (entry != null) {
return new QName(entry.getNamespaceURI(), entry.getLocalName());
}
}
return null;
}
public @XmlTransient @Nullable QName getFirstDetailEntryName() {
DetailType dt = getDetail();
if (dt != null) {
Node entry = dt.getDetail(0);
if (entry != null) {
return new QName(entry.getNamespaceURI(), entry.getLocalName());
}
}
return null;
}
@XmlTransient
public String getSignature() {
return signature;
}
@XmlTransient
public int getCounter() {
return counter;
}
@XmlTransient
public Collection<SalesOrder> getSalesOrderCollection() {
return salesOrderCollection;
}
@XmlTransient
public String getCreateLocation() {
return createLocation;
}
@XmlTransient
public Date getModifyDate() {
return modifyDate;
}
@XmlTransient
public String getModifyLocation() {
return modifyLocation;
}
@XmlTransient
public String getSignature() {
return signature;
}
@XmlTransient
@Column(name = "salt", nullable = false)
public byte[] getSalt() {return salt;}
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Share> getShares() {return shares;}
@XmlTransient
public boolean isPersistable() {
return (!system && !carbonApplicationDeployed);
}
@XmlTransient
public Collection<Employee> getEmployeeCollection() {
return employeeCollection;
}
@XmlTransient
public String getWeight() {
return weight;
}
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "albums", cascade=CascadeType.PERSIST)
public List<Media> getMedia() {return media;}
@XmlTransient
public int getCode() {
return code;
}
public XmlTransientQuick(Locatable upstream, XmlTransient core) {
super(upstream);
this.core = core;
}
protected Quick newInstance(Locatable upstream, Annotation core) {
return new XmlTransientQuick(upstream, ((XmlTransient) core));
}
@XmlTransient
public Collection<SalesOrderLine> getSalesOrderLineCollection() {
return salesOrderLineCollection;
}
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="roles")
public Set<User> getUsers() {return this._users;}
@XmlTransient
public Collection<Product> getProductCollection() {
return productCollection;
}
@XmlTransient
public int getCode() {
return code;
}
public XmlTransientQuick(Locatable upstream, XmlTransient core) {
super(upstream);
this.core = core;
}
protected Quick newInstance(Locatable upstream, Annotation core) {
return new XmlTransientQuick(upstream, ((XmlTransient) core));
}
public Class<XmlTransient> annotationType() {
return XmlTransient.class;
}
public Class<XmlTransient> annotationType() {
return XmlTransient.class;
}
@XmlTransient
public Collection<SalesOrder> getSalesOrderCollection() {
return salesOrderCollection;
}