java - JPA MappedSuperClass Inheritence Strategy -


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


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

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

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


Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

Firefox reacting to JQuery setTimeout that doesn't apply -