java - JPA MappedSuperClass Inheritence Strategy -


है @ इनहेरिटन्स , @DiscriminatorValue , @DiscriminatorColumn @MappedSuperClass पर लागू


प्रश्न पूछा जाता है क्योंकि ORM.XML जेपीए विनिर्देश इकाई का विशेषता है:

= "पोस्ट-पाठ" आइटमप्रॉप = "पाठ">

नहीं, वे लागू नहीं हैं। मैप किए गए वर्ग कोड को कोड पुन: उपयोग के लिए उपयोग किया जाता है, और इकाई विरासत के लिए नहीं। इसका उपयोग केवल सामान्य गुणों और उन संस्थाओं के बीच विधियों को साझा करने के लिए किया जाता है, जो अन्यथा में समान नहीं है।


Comments

Popular posts from this blog

javascript - How to use the code plugin with popcornjs -

python - rpy2 import is not working -

Python, converting png to gif using ImageMagick -