I'm extracting JPA entities into a separate Fat/Uber jar for external system to use. ProGuard is used through com.github.wvengen:proguard-maven-plugin to shrink all other unused code. I want to keep all methods in JPA entities except ones annotated by @javax.persistence.Transient annotation. I've found "!transient" for field modifiers in ProGuard rules, but seems that [email protected] for methods does not work :( Can I reach the same effect somehow for methods by other way ?
How to unkeep or force remove @javax.persistence.Transient annotated methods in JPA entities in ProGuard?
177 views Asked by Sergey Polyakov At
1
There are 1 answers
Related Questions in JPA
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- JPA Hibernate OneToOne Mapping
- Problem While Fetching the Entity data and its related Entity data with JPA(Lazy Initialization Exception)
- Why does Hibernate execute two SELECT queries instead of one when using @ManyToOne(fetch = FetchType.EAGER)
- JPA Two primary key at owning side and One Foreign Key at the Child
- Approaches to persist enum in java
- Problem with inserting objects into database that have composite ids
- Unique index or primary key violation Spring JPA
- Concurrently open statements
- JPA SPECIFICATION WITH INTERFACE PROJECTIONS
- Conditional uniqness
- Spring JPA + Hibernate + Rest services + long time transactions
- JPA/Hibernate JpaSystemException: identifier of an instance of X was altered from Y to Z
- How to Revert Database Changes Made in a Session Without Using Transaction Management?
- Hibernate generic type handling
Related Questions in ANNOTATIONS
- Is there a VB.net way to clear/remove Vertical Line annotations?
- control javac options per class from annotation processor
- Why does openshift ingress not allow router annotations?
- External annotation processor not working
- How to inherit and use swagger’s schema annotation
- Adding Annotation with PDF.js
- Remove annotation from subtree commits (--unannotate) when Git subtree becomes a standalone repository
- Missing categorical annotations in R pheatmap() despite no missing values in data
- Is there a philosophical reason why jUnit 5 uses annotations rather than classes or interfaces?
- Does the [NotifyCanExecuteChangedFor] Annotation Not Work in Combination with ObservableCollection?
- Playwright annotations expect 2 arguments but got 3
- Is there an equivalent to @BeforeAll in JMH(Java Microbenchmark Harness), Level.Trial is not working
- The value '' is not valid for
- Spring Boot: @Autowired throws 'UnsatisfiedDependencyException' while testing
- I need Visual Code Studio to Auto Suggest parameter details for my functions, Where and how I do that?
Related Questions in PROGUARD
- Add default value before each encrypted value in proguard
- How to help your R8 perform at its highest level
- Google Warning: There is no deobfuscation file associated with this App Bundle
- How do I access files during the packaging process that belong to a dependency of the current project that is being built?
- Does minifyEnabled true changes class names in Android Studio?
- Kotlin static methods not recognized after Proguard/R8 minimization?
- Can not recieve data when use retrofit and set minifyEnabled true
- How to prevent override methods from being converted into final in R8?
- Proguard for Android Jetpack compose UI
- Google Rejection because of "Violation of Broken Functionality policy"
- Having an issue with Dagger Hilt Proguard Rules
- How do I obfuscate a WAR project which contains multiple other JARs using maven?
- Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in
- androidx.annotation.Keep not works when using AGP 8.3.0
- How to obfuscate WAR with maven plugin for Proguard?
Related Questions in SHRINK
- will there be overflow or not in this case
- The log file is not shrinking with SQL Shrink
- Resize tightly packed array without copying data
- Cytoscape task is running upon program launch and shrinking window down to unreadable size
- Why jvm increase all the time without shrink even if has -XX:MaxHeapFreeRatio jvm argument
- How to fix app layout shrinking on iOS after upgrading RN version from 0.63.4 to 0.71.1?
- How can I make my navigation bar disappear under a drop-down button when I shrink my website?
- SQL Server - Shrink DB still large file tempdb_mssql_2
- Convert PDF to image with high resolution to fit in page
- React textarea grows but doesn't shrink, how to make it shrink?
- Crop Images in Flexbox Div Assembly that Keeps a Browser Height Ratio
- Why flex-shrink doesn't work in inline-flex
- Dart: Putting a list into a map shrinks the list
- How to create one BufferedReader for several text files
- How to make image view scrollable in Android
Related Questions in NEGATE
- Google sheets - Query + Importrange WHERE Clause doesn't accept AND for a second condition
- Match RegEx with Caret Negation (exclude)
- Negate the output of the regex pattern
- Analog to negating .filter()
- How to unkeep or force remove @javax.persistence.Transient annotated methods in JPA entities in ProGuard?
- Rspec: expect(request).to not_redirect? (opposite of redirect_to)
- Easiest way to REGEX Capture eveything except what you specify?
- negating levels for fct_collapse
- Shell alias input search syntax for a negated find search
- TextPad regular expression negation with a min/max
- PHP - nagate callback result
- negate a javascript regex to match all except ranges
- How to replace values in df that are NOT fulfilling condition
- How to apply not operator to all matrix elements in Julia?
- RegEx to not to contain "--"
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Unfortunately I've not got an answer on this question and was not be able to solve this by ProGuard+MavenPlugin directly, but I've resolved this problem with one additional step before run a ProGuard. I've just used ByteBuddy + Maven plugin on Maven phase before you run ProGuard Maven plugin and it will then optimize/remove the rest unused stuff, see details about byte-buddy instrumentation step here: byte-buddy remove/strip methods