Questions tagged [mappingexception]

54 questions
2
votes
0 answers

Custom Converter Dozer - Exception List of List

I have an object like public class Foo{ private List> anotherFooList; } and I have a DTO object like public class FooDTO{ private List> anotherFooList; } On regular dozer converter I have an…
tviana
  • 407
  • 4
  • 20
2
votes
3 answers

Mapping Exception : Class does not exist Symfony2 Deployment

I have a working Project on localhost but when I deployed the project I received this error and I have no idea what's causing this to happen. MappingException: Class 'PremiumPharma\SystemBundle\Entity\User' does not exist this is the…
Seif Sayed
  • 783
  • 2
  • 9
  • 18
2
votes
0 answers

Spring data MongoDb cannot convert proxy bean

I'm using Spring AOP with AspectJ and Spring Data MongoDb and am having a world of trouble persisting objects. In this case, I have an AclEntryDaoImpl that exposes AclEntryImpl. When AclEntryImpl is provided a Principal that is a standard Java…
sambo
  • 21
  • 2
2
votes
1 answer

Hibernate Composite Key Using Annotation , Having One Foreign Key

I googled it but could't found any solution I Two classes Application.java and ApplicationVersion.java they have One-to-Many relation, ApplicationVersionPk.java is a Embedable class which is used as composite key in ApplicationVersionPk.java below…
2
votes
1 answer

org.hibernate.MappingException: Unable to find column with logical name Id

It's just one of my first demos on JPA and it's so simple that this error drives me crazy:( Database (postgresql) CREATE TABLE "Order" ( "Id" integer NOT NULL, "DateOf" timestamp with time zone, "Description" text, CONSTRAINT "PK_Id" PRIMARY…
Mikhail Ivanov
  • 113
  • 2
  • 3
  • 10
1
vote
0 answers

mongo aggregation issue after spring boot version upgrade to 2.5.14 from 2.4.13

The aggregation was working fine before the spring boot version upgrade. After upgrading to 2.5.14, I'm facing issue with MongoTemplate.aggregate(Aggregation aggregation, Class inputType, Class outputType) as…
pujan kc
  • 444
  • 1
  • 5
  • 11
1
vote
0 answers

org.hibernate.MappingException: Could not determine type for: , at table: Sentence, for columns:

I get this error on execution: org.hibernate.MappingException: Could not determine type for: transcriptParsing.structures.Participant, at table: Sentence, for columns: [org.hibernate.mapping.Column(participant)] I have the following class…
1
vote
1 answer

Hibernate mapping exception even though mappings appear correct

I've this Java application in package com.luv2code.hibernate.demo: package com.luv2code.hibernate.demo; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
1
vote
0 answers

Exception while many-to-one relation org.hibernate.MappingException: Could not determine type for

i want to write a simple many-to-one ORM using hibernate. I have tow tables, user and location. Location contains country names one of which i want to refer in user class. public class User extends BusinessBaseImpl implements…
Gunwant
  • 149
  • 1
  • 5
1
vote
1 answer

Symfony - Mapping Exception - The class 'PreAuthenticatedToken' was not found in the chain configured namespaces App\Entity

I'm trying to logout my user, getting it's token (which is existing and working) like this: public function logout(Request $request, TokenStorageInterface $tokenStorage) { $em = $this->get('doctrine.orm.entity_manager'); …
Pierrick Martellière
  • 1,554
  • 3
  • 21
  • 42
1
vote
1 answer

Hibernate Table not found, MappingException and AssertionException

I tried to map an existing Postgresql Database with Hibernate and it already worked while I didn't add Inheritances per Subclass to Hibernate This is the superclass @Entity @Table(name = "place", schema = "public", catalog =…
1
vote
1 answer

Using both version and timestamp I get a SAXParseException

When using both attributes version and timestamp in hibernate.hbm.xml file and running the program, I get an exception. If version attribute is removed, the program works fine but using both I get a runtime error. hibernate.hbm.xml file
Ng Sharma
  • 2,072
  • 8
  • 27
  • 49
1
vote
2 answers

Hibernate MappingException

I'm getting this Hibernate error: org.hibernate.MappingException: Could not determine type for: a.b.c.Results$BusinessDate, for columns: [org.hibernate.mapping.Column(businessDate)] The class is below. Does anyone know why I'm getting this…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
1
vote
3 answers

Many to many causing MappingException

I'm trying to create many-to-many asociation with hibernate4. there is what i'm doing: @javax.persistence.Table(name = "devices", schema = "", catalog = "explorer_user") @Entity public class DevicesEntity { private int id; …
przebar
  • 531
  • 1
  • 5
  • 19
1
vote
1 answer

org.hibernate.MappingException: Unable to find column with logical name:

I have this TABLES: 1.- PARTICIPANTE CREATE TABLE participante ( id_participa SMALLINT NOT NULL, nasi INTEGER NOT NULL, PRIMARY KEY(id_participa,nasi), FOREIGN KEY(nasi) REFERENCES persona(nasi) ) 2.- PERSONA CREATE…
diminuta
  • 1,545
  • 8
  • 32
  • 55