Originally posted by Rama Krishna Gaddipati:
Can we acheive any more in performance wise by using Inheritence in Hiberate?
Again, this isn't a Hibernate issue. Inheritance is Java Inheritance. However, you have your database designed, is what will determine any performance.
So here's a quick example
I have an Account class and two subclasses BankAccount and CreditCard. So how will that affect performance? Well in no way at all.
Performance will only be dictated by your database. Meaning do you have 1 table for this, or 2 tables or 3 tables, and if so will the query to the database need to include a join or not. And even if you have 1 2 or 3 tables, you could choose to create a class heirarchy or not, it wouldn't affect the query needed to run against the database.
Does that make more sense?
Mark