cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with CAP App cds.persistence.skip

NicoGo
Explorer
0 Kudos
453

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  

View Entire Topic
patricebender
Product and Topic Expert
Product and Topic Expert
0 Kudos

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