Interface « Annotation « JPA Q&A

1. JPA annotations and Interfaces

I have a class Animal and an interface it inherits from IAnimal.

public class Animal implements Serializable, IAnimal{...}.

public class Jaguar extends Animal{...}
My first question is, do I need to annotate the interface? I ...

2. Interfaces with hibernate annotations

i am wondering how i would be able to annotate an interface

@Table(name = "FOLDER_TABLE")
public class Folder implements Serializable, Hierarchy {

@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "folder_id", updatable = false, nullable = false)
private int ...

3. Interfaces and hibernate annotations

Hi All, I'm hoping there's someone clever out there who can give me a definite answer on this. I've been searching the web for a while and the information seems either old or confusing. I used to map implicit polymorphism in my classes through the mapping files but have moved to annotations. I know need to write something along the lines ...

4. import interface with annotations

5. place for annotations instructions in interface or class

hi!, i`m a beginner in hibernate, i have question about annotations informations place, if i use interface and one inherited class. Code: @Entity @Inheritance(strategy=InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name="value_type", discriminatorType=DiscriminatorType.STRING ) @Table(name="house_property_value") @javax.persistence.SequenceGenerator( name="seq_house_property_value", sequenceName="s_house_property_value", allocationSize=1 ) public interface HousePropertyValue extends Serializable { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, ...