Skip to content

Commit

Permalink
字段注解完善
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc committed Jul 2, 2013
1 parent 98f0d18 commit f4058ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public class Position extends SimpleModel{
@JoinColumn(name = "positionID")}, inverseJoinColumns = {
@JoinColumn(name = "commandID")})
@OrderBy("id")
@ModelAttr("岗位拥有的命令列表")
@ModelCollRef("chinese")
protected List<Command> commands = new ArrayList<>();

@ManyToMany(cascade = CascadeType.REFRESH, mappedBy = "positions", fetch = FetchType.LAZY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public class Role extends SimpleModel {
@JoinColumn(name = "roleID")}, inverseJoinColumns = {
@JoinColumn(name = "commandID")})
@OrderBy("id")
@ModelAttr("角色拥有的命令列表")
@ModelCollRef("chinese")
protected List<Command> commands = new ArrayList<>();
public String getModuleCommandStr(){
if(this.commands==null || this.commands.isEmpty()){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class NewsContent extends SimpleModel{
protected News news;

@Enumerated(EnumType.STRING)
@ModelAttr("多国语言")
protected Lang lang;

@SearchableProperty
Expand Down

0 comments on commit f4058ad

Please sign in to comment.