hibernate-ogm

Unable to instantiate specified TransactionFactory class [org.transaction.JDBCTransactionFactory]

巧了我就是萌 提交于 2019-12-11 19:42:38
问题 I have a problem. I am new in hibernate and I want to write a very simple example with HibernateOGM. I get an Exception that says: Caused by: org.hibernate.HibernateException: Unable to instantiate specified TransactionFactory class [org.transaction.JDBCTransactionFactory] I have searched really alot, but I couldn't find any solution for my problem. As I understand, the problem occures in this line: sessionfactory=cfgogm.buildSessionFactory(serviceregistry); If I comment the other lines I

Hibernate OGM With Mongodb Count query with $gt $gte $lt $lte not working with less than 1

两盒软妹~` 提交于 2019-12-11 17:10:30
问题 I am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.4) I executed Mongodb Count Query Using Hibernate OGM by 2 below way (1). Count query using Mongodb count query db.tablename.count({..}) (2). Count query by Mongodb Aggregate query... Description (1). Count query using Mongodb count query db.tablename.count({..}) public long executeCountQuery(){ //below line Works fine because value is 1.3 with $lt //String query= "db.sales_stone_details.count({'$and':[{'size' : { '$lt' : 1.3}}]})" /

Hibernate OGM Aggregate Query result fields not working with Wrapper Types

本小妞迷上赌 提交于 2019-12-11 15:38:00
问题 I am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.4) Example: @Entity @Table(name = "jangad") @JsonInclude(Include.NON_EMPTY) public class Jangad { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @JsonSerialize(using = ToStringSerializer.class) public ObjectId id; public String name; @OneToMany(mappedBy = "jangad") public Set<SalesStoneCharacteristics> setOfSalesStoneCharacteristics; // Note : Integer data type for this not working with aggregation result. public Integer

Hibernate OGM with Mongodb Result of 2nd Query on same table dependent on Result fields of 1st query of same table

我们两清 提交于 2019-12-11 15:27:02
问题 I am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.4) @Entity @Table(name = "service") @JsonInclude(Include.NON_EMPTY) public class Service { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "SERVICE_ID", unique = true, nullable = false) @JsonSerialize(using = ToStringSerializer.class) public ObjectId id; private String name; @ManyToOne @JsonIgnore public Lab lab; getter.... setter.... } @Entity @Table(name = "lab") @JsonInclude(Include.NON_EMPTY) // @JsonFilter

Hibernate module error OGM + MongoDB and Wildfly 10

£可爱£侵袭症+ 提交于 2019-12-11 02:21:34
问题 I'm looking for a help to configure Wildfly 10 with Hibernate OGM and MongoDB ... I have the following error: 11:13:17,164 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.module.service."deployment.brx-plataforma.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.brx-plataforma.war".main: WFLYSRV0179: Failed to load module: deployment.brx-plataforma.war:main at org.jboss.as.server.moduleservice

JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'

ぃ、小莉子 提交于 2019-12-10 11:43:26
问题 I try to deploy an application what uses hibernate ogm and I always get the error "Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'". I have installed the module ogm under WILDFLY_HOME/modules/org/hibernate but it didn't help. Do I need to configure something in standalone.xml? Does someone have an idea? Thanks and best regards 回答1: I had the same problem. By removing the following line from persistence.xml , wildfly got convinced to accept the

MongoDb authentication using Hibernate OGM

谁说我不能喝 提交于 2019-12-07 12:18:50
问题 I'm able to authenticate on my mongodb using the shell command: #mongo -u user -p pwd --authenticationDatabase admin MongoDB shell version v3.4.1 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.1 > use admin switched to db admin > show users { "_id" : "admin.ladmin", "user" : "ladmin", "db" : "admin", "roles" : [ { "role" : "userAdminAnyDatabase", "db" : "admin" } ] } { "_id" : "admin.living", "user" : "user", "db" : "admin", "roles" : [ { "role" : "readWrite", "db" :

Hibernate - OGM [PersistenceUnit: person] Unable to build Hibernate SessionFactory

点点圈 提交于 2019-12-06 05:31:38
问题 i am getting an below error Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: person] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1249) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:120) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform

MongoDb authentication using Hibernate OGM

邮差的信 提交于 2019-12-05 22:41:34
I'm able to authenticate on my mongodb using the shell command: #mongo -u user -p pwd --authenticationDatabase admin MongoDB shell version v3.4.1 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.1 > use admin switched to db admin > show users { "_id" : "admin.ladmin", "user" : "ladmin", "db" : "admin", "roles" : [ { "role" : "userAdminAnyDatabase", "db" : "admin" } ] } { "_id" : "admin.living", "user" : "user", "db" : "admin", "roles" : [ { "role" : "readWrite", "db" : "lvdb" } ] } I've also been able to authenticate on it using java driver: List<ServerAddress> seeds = new

Hibernate - OGM [PersistenceUnit: person] Unable to build Hibernate SessionFactory

陌路散爱 提交于 2019-12-04 10:41:00
i am getting an below error Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: person] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1249) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:120) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:860) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4