question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to skip Generated Persistent Class

See original GitHub issue

Similar to the parameter skipGeneratedGatewayClasses a parameter skipGeneratedPersistentClasses should be implemented. For the main class this can be discovered from the XML Attribute CATEGORY which has the Value 10 for the Persistent Class:

<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_CLAS" serializer_version="v1.0.0">
 <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
  <asx:values>
   <VSEOCLASS>
    <CATEGORY>10</CATEGORY>

The generated Base Agent Class has CATEGORY Value 11 which stands for “Factory for Persistent Class”. It’s parent class is CL_OS_CA_COMMON.

And the generated Agent Class has the Base Agent Class as it’s parent.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gregorwolfcommented, Dec 21, 2018

Please check my latest version of CLAS_persistent where I’ve added abaplint checks. I get the following result:

➜  CLAS_persistent git:(master) ✗ node_modules/.bin/abaplint "src/**/*.abap" -s

100% - 0.0s - Reading files - zcl_abapgit_testing_persistenc.clas.abap
100% - 0.4s - Lexing and parsing(v753) - CLAS ZCL_ABAPGIT_TESTING_PERSISTENC
100% - 0.2s - Second pass - CLAS ZCL_ABAPGIT_TESTING_PERSISTENC
100% - 0.1s - Finding Issues - CLAS ZCL_ABAPGIT_TESTING_PERSISTENC
src/zca_abapgit_testing_persistenc.clas.abap[46, 3]    - Use functional writing style
src/zca_abapgit_testing_persistenc.clas.abap[1, 1]     - Keywords upper case
src/zca_abapgit_testing_persistenc.clas.abap[9, 14]    - Bad attribute name "AGENT" expected "^G._.*$/i"
0reactions
larshpcommented, Dec 21, 2018

try again, new version released

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add attribute to generated persistent class - with references
Hi there,. i'm working with generated persistent classes where I use object references to an other generated class. My example:.
Read more >
Exclude certain persistent classes from model creation and ...
Hi, I have a module from which I need to have a few persistant classes to connect to another legacy external database. Those...
Read more >
Other Options for Persistent Classes | Defining and Using ...
It is possible to define a persistent class whose objects can be opened but not saved or deleted. To do this, specify the...
Read more >
exclude @Entity from persistence - java - Stack Overflow
class The class element specifies a fully qualified class name that you will map. By default all properly annotated classes and all hbm.xml ......
Read more >
5.2. Enhancement - Oracle Help Center
An enhancer is a tool that automatically adds code to your persistent classes after you have written them. The enhancer post-processes the bytecode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found