Does anyone have a guide or github example of setting up JPA in CAS 6.3.x?

I'm trying to get the spring-boot way to work but I keep getting various 
errors with missing beans, undefined jpa data models etc. All works with 
standalone spring-boot2 app but not working out with cas template project.

build.gradle:
 implementation 
("org.springframework.boot:spring-boot-starter-data-jpa:2.3.9.RELEASE") {
        exclude group: 'org.springframework.boot', module: 
'spring-boot-starter-logging'
       exclude group: 'org.apache.tomcat', module: 'tomcat-jdbc'
    }

@Data
@RequiredArgsConstructor
@NoArgsConstructor(access=AccessLevel.PRIVATE, force=true)
@Entity
public class  MyUser implements Serializable { 
@Id
private final String userId;
...
}


@Repository
public interface MyUserRepository extends JpaRepository< MyUser  , String> 
{...}

@Service
@Transactional(readOnly = true)
public class MyUserService { 
@Autowired
private  MyUserRepository    myUserRepository   ;

@Transactional(readOnly = true)
public  MyUser   findByUserId(String id) {
return  myUserRepository.findByUserId(id);
}
}


Thanks in advance
-psv

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/baa816c6-9f69-42dd-ac8b-f136c5a7cf02n%40apereo.org.

Reply via email to