cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems with CAP App cds.persistence.skip

NicoGo
Explorer
0 Likes
1,568

Hi,

I am doing the Learning Journey "Developing Full-Stack Applications Using Productivity Tools in SAP Business Application Studio" here i get the problem that my BusinessPartner Service is throwing the following error: 

"Entity \"RiskManagementService.A_BusinessPartner\" is annotated with \"@cds.persistence.skip\" and cannot be served generically."

Maybe you can help me with that, already tried to delete this annotation but the error still appears.

Best regards,

Nico  

Accepted Solutions (0)

Answers (1)

Answers (1)

patricebender
Product and Topic Expert
Product and Topic Expert
0 Likes

An entity annotated with `@cds.persistence.skip` or `@cds.persistence.exists` will not result in a database table being created for you. The `@cds.persistence.exists` annotation is mostly for scenarios, where you have an existing persistence which is outside of you CAP model. E.g. native HANA artifacts… Please read our documentation for more on that.

That being said, if you expose an entity with this annotation, you have to implement your own logic to e.g. READ data from this entity, which is not part of your CAP model.

markus_griem
Product and Topic Expert
Product and Topic Expert
Ask a Question
Top Q&A Solution Author