小编Kel*_*uia的帖子

使用Angular CLI使用Angular 4 Release创建项目

如何使用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)

angular-cli angular

20
推荐指数
2
解决办法
4万
查看次数

JPA @OneToMany从Join中按日期获取最新记录

尝试从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)

spring jpa spring-data-jpa

2
推荐指数
1
解决办法
2153
查看次数

标签 统计

angular ×1

angular-cli ×1

jpa ×1

spring ×1

spring-data-jpa ×1