Hello,
if i deploy all annotated classes with JPA and hibernate extensions in an Java EE server ( and include all hibernate libraries) and model DAO layer with entityManager, will be able to take advantage of hibernate extesion annotations, such as
Code:
...
@GenericGenerator (
name = "hibernate-increment",
strategy = "increment"
)
...
@CollectionOfElements
@JoinTable(
name = "USER_PHONE",
joinColumns = @JoinColumn(name = "USER_ID"))
@CollectionId(
columns = @Column(name = "USER_PHONE_ID"),
type = @Type(type = "long"),
generator = "hibernate-increment")
private Collection<Phone> phones = new ArrayList<Phone>();
...
etc
say if i deploy it on jboss 5 vs glassfish. Or would i have to get rid of all hibernate features and just keep it JPA. I really do want to keep hibernate extensions and at the same time make use of managed environment.