I’m using JDK1.6. When I implement an interface and in the implementing class, if I give @override before my function names, Eclipse throws an compilation error. i.e. below code is wrong according to Eclipse. If I remove @Override annotation, then the code compiles fine. Does it mean that JDK1.6 does not require us to prefix the @override annotation anymore? Answer
Tag: annotations
Persisting set of Enums in a many-to-many unidirectional mapping
I’m using Hibernate 3.5.2-FINAL with annotations to specify my persistence mappings. I’m struggling with modelling a relationship between an Application and a set of Platforms. Each application is available for a set of platforms. From all the reading and searching I’ve done, I think I need to have the platform enum class be persisted as an Entity, and to have
Is it possible to add JPA annotation to superclass instance variables?
I am creating entities that are the same for two different tables. In order do table mappings etc. different for the two entities but only have the rest of the code in one place – an abstract superclass. The best thing would be to be able to annotate generic stuff such as column names (since the will be identical) in
hibernate column name issues
I specifically need the above code to create a column named “DateOfBirth,” instead Hibernate gives me a column named date_of_birth. How can I change this? Is there a web.xml property? I came across DefaultNamingStrategy and ImprovedNamingStrategy, but not sure how to specify one or the other. Answer Here is a possible workaround: if you name it dateofbirth the column in