Hello,
I'm getting the exception
Code:
java.lang.IllegalArgumentException: interface javax.persistence.AttributeOverrides is not visible from class loader
When trying to use the following Ant excerpt
Code:
<target name="hbm2dll">
<hibernatetool>
<annotationconfiguration configurationfile="${source.root}/hibernate.cfg.xml" />
<hbm2ddl destdir="${generated.sql.dir}" outputfilename="schemas.ddl" drop="true" console="false" />
</hibernatetool>
</target>
on a class with the following annotations:
Code:
@Entity
@Table(name = "order_document")
@AttributeOverrides({@AttributeOverride(name = "id", column = @Column(name = "order_id"))})
public class Order extends Document implements Serializable {
...
}
(which inherits from:)
Code:
@MappedSuperclass
public abstract class Document implements Serializable {
private Long id;
...
@Id
@GeneratedValue(generator = "increment_id")
@GenericGenerator(name = "increment_id", strategy = "increment")
public Long getId() {
return id;
}
...
}
I've tried running it from within Eclipse and from the command prompt. The jar files concerning Hibernate, Hibernate Annotations and Persistence API are all upgraded to newest versions (Hibernate 3.2.0GA, EJB 3.0 Final). And Google isn't very helpful. :(
Any ideas to what it could be?