cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with CAP App cds.persistence.skip

02-19-2025 2:53 PM
NicoGo Explorer
2133 views 2 comments
0 Likes
SAP Managed Tags
Labels
SAP Learning Class
Subscribe

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  

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

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