Closed mbossX closed 10 months ago
@wog48
if change Entity Role to:
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
private String permissions;
}
post request success and row inserted.
Can you provide the call stack of the exception?
use v2.0.0 and it worked. tks
if u need more info, plase tell me. or close this issue.
Thanks.
Entities like:
when I insert new row url
/api/odata/v1/Users
with body{"name":"刘强12","address":"春熙路","age":16,"email":"aakk@172.com","role":{"id":1}}
it fail and error is:Cannot invoke "java.util.Collection.add(Object)" because the return value of "java.lang.reflect.Method.invoke(Object, Object[])" is null
Role {id: 1} exists in database(mysql) so what should I do?version: 1.1.1