Skip to content

Instantly share code, notes, and snippets.

@anny0739
Created May 12, 2020 04:51
Show Gist options
  • Save anny0739/29fccd28a90cd764a792f8d861955dba to your computer and use it in GitHub Desktop.
Save anny0739/29fccd28a90cd764a792f8d861955dba to your computer and use it in GitHub Desktop.
Assertion.java
@Entity
public class Goods {
private int goodsId;
}
@Entity
public class GoodsDetail {
private Assertion<Goods> goodsId;
}
public class Assertion<T> {
private final int id;
public Assertion(int id) {
this.id = id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment