Hallo all,
i got a problem by using CrudRepository. Example: i have two entities, entity A has a collection of entity B.
class A {
int id;
int name;
@OneToMany(cascade =...
Type: Posts; User: jaiwo99; Keyword(s):
Hallo all,
i got a problem by using CrudRepository. Example: i have two entities, entity A has a collection of entity B.
class A {
int id;
int name;
@OneToMany(cascade =...
Hello Marten,
thx for your comment, did you mean that i only need to declare <jpa:repositories /> and the base-package should point to my package, which contains the @Service. could i may be point...
Hello Marten,
thx for your comment, the Action class is implemented with Struts2, i thought if i got
<jpa:repositories base-package="com.myproject.repositories" />,
i do not have to...
Hi prashob,
thx for your comment! i just tried on my ServiceImpl class to add setter for the repo. It is still not working
public class ServiceImpl implements Server{
MyRepository repo;
...
Hi,
i got java.lang.NullPointerException by using CrudRepository
my project looks like this:
strut2 action
service
repository
domain