Can I use enum parameter into JpaRepository nativeQuery?

前端 未结 4 961
温柔的废话
温柔的废话 2020-12-30 00:44

Entity looks like this:

@Getter
@Setter
@Entity
public class Application {
@Id
private Long id;
@Enumerated(EnumType.STRING)
private ApplicationStatus status         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 01:20

    You could convert to string before passing the params.

提交回复
热议问题