Skip to content
Advertisement

Tag: annotations

@override annotation in JDK 1.6

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

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

Advertisement