-
1. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
jaikiran Jun 25, 2019 1:52 AM (in response to prasadps007)1 of 1 people found this helpful.har deployments aren't supported in WildFly. .har is an outdated concept and it has been replaced by (portable) JPA deployments which are part of Java EE spec. So you can actually convert your .har into a .jar file with a persistence.xml and package that jar within your .ear. Here's an example of how to do it Re: Migrate HAR hibernate archive to AS7
-
2. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
prasadps007 Jun 26, 2019 1:50 AM (in response to jaikiran)Thanks for your update..
We are using Hibernate 3 . does Wildfly 10.1.0 Final version support Hibernate 3 ?.. or do we need to upgrade that into higher version ?
-
3. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
rockazo Jun 28, 2019 8:24 AM (in response to prasadps007)No, wildfly 10.1.0 Final dejó de brindar soporte a hibernate 3.
Yo actualmente utilizo hibernate 5.X.
JPA Reference Guide - WildFly 10 - Project Documentation Editor
Saludos -
4. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
prasadps007 Jul 1, 2019 8:16 AM (in response to rockazo)Does Hibernate 5x support hbm.xml file?
We are using hibernate 3 with . hbm. xml mapping..
Since we are new to this,Please provide a detailed approach(step by step)
to upgrade hibernate from version 3 to 5
-
5. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
rockazo Jul 1, 2019 10:43 AM (in response to prasadps007)Segun entiendo sigue estando disponible en hibernate 5 el mapeo mediante hba.xml. Sin embargo, to sugiero el uso de anotaciones JPA incluidas en el package javax.persitence el cual podrias incluir mediante Maven a tu proyecto bajo la siguiente dependencia:
<!-- https://mvnrepository.com/artifact/javax.persistence/javax.persistence-api -->
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>2.2</version>
</dependency>
PD: Siempre esta la opcion de conseguir el componente y agregarlo a tu proyecto en caso de no usar Maven u otro gestor.
Luego, no podria describir un paso a paso porque nunca no le he realizado antes, sin embargo en el siguiente enlace describe bastante bien lo requerido:
https://en.wikibooks.org/wiki/Java_Persistence/Converting_hibernate_xml-mapping_to_JPA_annotations
Espero haber ayudado, saludos
-
6. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
smarlow Jul 1, 2019 2:26 PM (in response to prasadps007)prasadps007 wrote:
Does Hibernate 5x support hbm.xml file?
Here is an example from the WildFly testsuite using hbm.xml file (part of an Arquillian test that includes the hbm.xml file as Java String (testmapping)).
-
7. Re: Does WildFly 10.1.0 Final version support hibernate archive *.har deployment
prasadps007 Jul 1, 2019 2:56 PM (in response to smarlow)Sorry i ami looking for the configuration difference in both hibernate 3
and 5(session factory creation, how do they used hmm. xml file in
hibernate 5 etc)
I have searched hibernate version 3 to 5 migration plan in internal.. But
i couldn't find anything...
It would be great if anyone can help me on the same..