I used Hibernate ddl generation of SQL to generate an entity's table (I think.) Anyway, there's hashcode
field. My questions are:
- Is that field necessary?
- If I'm inserting test data in the table using SQL, what do I set the value to? From what I read here, native java implementation uses memory address to feed hash function? (Java -- Object.hashCode() algorithm)
- If I wrote a mapped supperclass for all serialized entity to inherit
which performed a regular hash of the entity's
Id
field, would I be causing myself some grief later? (I think I got that idea from 'effective java'.)