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

dao insert collection忽略了@prev的操作 #112

Closed
hujun82589167 opened this issue Nov 15, 2011 · 1 comment
Closed

dao insert collection忽略了@prev的操作 #112

hujun82589167 opened this issue Nov 15, 2011 · 1 comment

Comments

@hujun82589167
Copy link

pojo:class User{
@id
@column
@Prev(@Sql("SELECT SEQUENCE_PUBLIC.nextval from dual"))
private long id;

@Column
private String name;

}
dao: User user=new User();
user.name="test";
List list1 = new LinkedList();
list.add(user);
dao.insert(list);

结果:user对象id字段未被设置值

@wendal
Copy link
Member

wendal commented Nov 15, 2011

@id(auto=false)

@wendal wendal closed this as completed Nov 15, 2011
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

2 participants