Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

id是索引中的一个字段怎么办,又想把id设置为主键 #34

Closed
hhf296095496 opened this issue Oct 28, 2022 · 1 comment
Closed

Comments

@hhf296095496
Copy link

@DaTa
@IndexName(value = "rmrb_live_info_test_s1")
public class Content {

@IndexField("id")
@IndexId(type = IdType.CUSTOMIZE)
private Long id;

private String title;

private Date planEndTime;

private Integer tplId;

}

我实体类是这样写的,id即使主键又是索引数据的一个字段,我这样写,只能把id设置成主键,索引数据中没有id这个字段,请问怎么设置呢

@hhf296095496
Copy link
Author

已经解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant