0
votes
5answers
8k views

org.hibernate.exception.SQLGrammarException: could not insert [com.sample.Person]

I'm trying to set up a small working sample of Hibernate that I found here However when I run the code I get the follwing error Exception in thread "main" org.hibernate.exception.SQLGrammarException: ...
1
vote
1answer
16 views

Error while creating SessionFactory object form hibernate.cfg.xml

i am creating a HibernateUtil.java class to return SessionFactory Object. but it's giving Error "The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class". my ...
2
votes
2answers
67 views

Column cannot be null could not insert

Hello dear developers. I'm going to ask you a question which I think hard to solve for me just because I don't know the basic why answer, what I mean?? Let's see. The assosiasions in jboss ...
0
votes
0answers
26 views

why generationtype.sequence in mysql doesn't work?

i am developing an application using hibernate 4.1, zk 6.5 and mySql 9.3, I tried using generationtype.sequence in my code but unfortunately it returned an error, after doing some research on the ...
0
votes
1answer
20 views

Ignore some Entities while generating creation scripts

Suppose we have a bunch of Entity classes that have mappings between eachoter: @Entity @Table(name = "legacy") public class Legacy { // Mappings to a bunch of other different Entities } @Entity ...
0
votes
2answers
12k views

The server encountered an internal error () that prevented it from fulfilling this request

WHEN I GAVE MY LOGIN id,pwd ...**http://localhost:8080/project_name. the error is The server encountered an internal error () that prevented it from fulfilling this request. I'm using jboss4.2.3 and ...
0
votes
0answers
39 views

Hibernate mapping and assosiations for 4 tables confused

I have these tables: This table called INSTITUTION: Table INSTITUTION ID(PK) NAME_INSTITUTION VERSION The other table name is TYPE_INSTITUTION: Table Type_Institution TYPE_ID (PK) ...
0
votes
1answer
23 views

Hibernate mapping when cfg file and entity file are in different folders

I've got project with this structure: When I'm trying to access dtb via hibernate, I get this exception: Initial SessionFactory creation failed.org.hibernate.MappingException: entity class not ...
0
votes
1answer
57 views

Hibernate HashMap mapping

I am new to hibernate and I need to map an existing class structure to the database. Right now I have a Player, Arsenal and Weapon class. Every Player has his own (one) Arsenal - no problem. In the ...
0
votes
0answers
51 views

Unexpected jdoDetachedState column when using hibernate in gwt project

I think it's a simple question for professionals but I am confused. I'm trying to save simple model class Person import java.io.Serializable; import javax.persistence.Entity; import ...
0
votes
2answers
353 views

How can I create a foreign key constraint using hibernate annotations?

I am trying to use hibernate annotation for writing a model class for my database tables. I have two tables each having a primary key User and Question. @Entity @Table(name="USER") public class ...
0
votes
2answers
46 views

Cannot delete child in one-to-many relationship

When I put inverse=true into set, nothing gets deleted. When I don't, and I remove MealIngredient from set, then Hibernate tries to set null, it fails and exception is thrown: [SQLITE_CONSTRAINT] ...
0
votes
1answer
63 views

Lazy loading and Fetch strategies

I am using Hibernate 3.6 User is an entity class Contact is an entity class User has a Set<Contact> The relationship is uni-directional and mapped as one-to-many. I have tried out the ...
1
vote
2answers
125 views

java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

I have a problem in using of my own Database server with Google web application. Am using eclips (java EE IDE), installed all google plugins init, and develop a sample google web aplication , ...
3
votes
1answer
64 views

could not initialize class com.mysql.jdbc.driver Caused by: java.security.AccessControlException: access denied

Am new to hibernate, I created project(Google web application project) with the help of eclips , This is my hibernate config file .. ...

1 2 3 4 5 24
15 30 50 per page