java - JPA MappedSuperClass Inheritence Strategy -


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


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

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

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


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

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