如何使用Angular CLI使用以下命令使用最新的Angular 4版本创建新项目:
ng new new_project
我安装了以下版本
- @angular/cli: 1.0.0-rc.2
- node: 7.7.3
- npm: 4.4.1
Run Code Online (Sandbox Code Playgroud) 尝试从Join中获取最新记录时遇到麻烦, 我有以下课程
作者
@Entity
@Table(name = "author")
public class Author {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(name = "name")
private String name;
@OneToMany
@JoinColumn(name = "author_id", referencedColumnName = "id")
@OrderBy("id Desc")
private List<Book> books;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Book> getBooks() {
return books;
}
public void …Run Code Online (Sandbox Code Playgroud)