These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: Why I have this error?
PostPosted: Wed Oct 19, 2005 4:18 am 
Newbie

Joined: Wed Oct 19, 2005 4:09 am
Posts: 5
Location: Romania
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]
3.0

[b]Mapping documents:[/b]

Product.hbm.xml

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

<class name="providerproducts.Product" table="PRODUCTS">

<property name="produs"/>
<property name="pret" type="float"/>
<property name="cantitate" type="float"/>
<property name="date" type="timestamp" column="EVENT_DAT"/>

</class>

</hibernate-mapping>

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[java] 11:49:17,843 ERROR XMLHelper:59 - Error parsing XML: XML InputStream(15) The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array|query-list)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*)".
[java] Initial SessionFactory creation failed.org.hibernate.MappingException: Error reading resource: providerproducts/Product.hbm.xml
[java] java.lang.ExceptionInInitializerError
[java] at HibernateUtil.<clinit>(Unknown Source)
[java] at EventManager.createAndStoreProvider(Unknown Source)
[java] at EventManager.main(Unknown Source)
[java] Caused by: org.hibernate.MappingException: Error reading resource: providerproducts/Product.hbm.xml
[java] at org.hibernate.cfg.Configuration.addResource(Configuration.java:452)
[java] at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1263)
[java] at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1235)
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1217)
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1184)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1098)
[java] ... 3 more
[java] Caused by: org.hibernate.MappingException: invalid mapping
[java] at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:399)
[java] at org.hibernate.cfg.Configuration.addResource(Configuration.java:449)
[java] ... 9 more
[java] Caused by: org.xml.sax.SAXParseException: The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array|query-list)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*)".
[java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
[java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
[java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[java] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
[java] at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
[java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[java] at org.dom4j.io.SAXReader.read(SAXReader.java:465)
[java] at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:398)
[java] ... 10 more
[java] Exception in thread "main"
[java] Java Result: 1

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


And this is my Hibernate config file:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory>

<!-- Database connection settings -->

<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/provider_products</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>

<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>

<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>


<mapping resource="providerproducts/Provider.hbm.xml" />
<mapping resource="providerproducts/Product.hbm.xml" />

</session-factory>

</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 4:40 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Because your XML is malformed and does not include a set of
Code:
<id> </id>
tags. Please refer to the documentation on how to map classes.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 5:06 am 
Newbie

Joined: Wed Oct 19, 2005 4:09 am
Posts: 5
Location: Romania
ok, I put something like this:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

<class name="providerproducts.Idiot" table="PRODUCTS">
<id name="id" column="PRODUCTS_ID">
<generator class="increment"/>
</id>
<property name="produs"/>
<property name="pret" type="float"/>
<property name="cantitate" type="float"/>
<property name="data" type="timestamp" column="PRODUCT_DATE"/>
<!--<set name="products" cascade="all" inverse="true" lazy="true">
<key column="PROVIDER_ID"/>
<one-to-many class="Product"/>
</set>

-->
</class>

</hibernate-mapping>

SO, I put also the <id> tag and also appears the same error!

[java] 12:58:40,046 ERROR Configuration:365 - Could not compile the mapping document
[java] org.hibernate.PropertyNotFoundException: field not found: id
[java] at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:96)
[java] at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:103)
[java] at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:111)
[java] at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:90)
[java] at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:78)
[java] at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:275)
[java] at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:360)
[java] at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:294)
[java] Initial SessionFactory creation failed.org.hibernate.MappingException: Error reading resource: providerproducts/Idiot.hbm.xml
[java] at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:236)
[java] at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:152)
[java] at org.hibernate.cfg.Configuration.add(Configuration.java:362)
[java] at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:400)
[java] at org.hibernate.cfg.Configuration.addResource(Configuration.java:449)
[java] at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1263)
[java] at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1235)
[java] java.lang.ExceptionInInitializerError
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1217)
[java] at HibernateUtil.<clinit>(Unknown Source)
[java] at EventManager.createAndStoreProvider(Unknown Source)
[java] at EventManager.main(Unknown Source)
[java] Caused by: org.hibernate.MappingException: Error reading resource: providerproducts/Idiot.hbm.xml
[java] at org.hibernate.cfg.Configuration.addResource(Configuration.java:452)
[java] at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1263)
[java] at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1235)
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1184)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1098)
[java] at HibernateUtil.<clinit>(Unknown Source)
[java] at EventManager.createAndStoreProvider(Unknown Source)
[java] at EventManager.main(Unknown Source)
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1217)
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1184)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1098)
[java] ... 3 more
[java] Caused by: org.hibernate.PropertyNotFoundException: field not found: id
[java] at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:96)
[java] at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:103)
[java] at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:111)
[java] at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:90)
[java] at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:78)
[java] at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:275)
[java] at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:360)
[java] at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:294)
[java] at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:236)
[java] at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:152)
[java] at org.hibernate.cfg.Configuration.add(Configuration.java:362)
[java] at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:400)
[java] at org.hibernate.cfg.Configuration.addResource(Configuration.java:449)

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 5:20 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Do you have an id property in the pojo with requisite getter and setter?

Set ID type to Long and set id in pojo to java.lang.Long (not primitive).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 10:18 am 
Newbie

Joined: Wed Oct 19, 2005 4:09 am
Posts: 5
Location: Romania
I have two tables and the field provider_id si the connection from the two, and I don't know how I can't populate the field provider_id from table PRODUCTS: I make this:

Product.hbm.xml:
<hibernate-mapping>

<class name="providerproducts.Product" table="PRODUCTS">
<id name="id" column="PRODUCT_ID">
<generator class="increment"/>
</id>

<property name="produs"/>
<property name="pret" type="float"/>
<property name="cantitate" type="float"/>
<property name="data" type="timestamp" column="PRODUCT_DATE"/>

<many-to-one name="provider"
class="providerproducts.Provider"
column="PROVIDER_ID"
not-null="true"/>

</class>

</hibernate-mapping>

Provider.hbm.xml:

<hibernate-mapping>

<class name="providerproducts.Provider" table="PROVIDER">
<id name="id" column="PROVIDER_ID">
<generator class="increment"/>
</id>

<property name="furnizor"/>
<property name="agent"/>
<property name="fix"/>
<property name="mobil"/>
<property name="web"/>


<set name="products" inverse="true">
<key column="PROVIDER_ID"/>
<one-to-many class="providerproducts.Product"/>
</set>


</class>

</hibernate-mapping>

So, the ideea is that I want that a provider to have more products.
Thanks

And here is want is giving me:

[java] 18:04:42,843 WARN Configurator:126 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/wrk/ssta/workspace/ProviderHybernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
[java] 18:04:43,750 ERROR SchemaExport:167 - Unsuccessful: create table PRODUCTS (PRODUCT_ID bigint not null, produs varchar(255), pret float, cantitate float, PRODUCT_DATE timestamp, PROVIDER_ID bigint not null, primary key (PRODUCT_ID))
[java] 18:04:43,750 ERROR SchemaExport:168 - Table 'products' already exists
[java] 18:04:43,750 ERROR SchemaExport:167 - Unsuccessful: create table PROVIDER (PROVIDER_ID bigint not null, furnizor varchar(255), agent varchar(255), fix varchar(255), mobil varchar(255), web varchar(255), primary key (PROVIDER_ID))
[java] 18:04:43,750 ERROR SchemaExport:168 - Table 'provider' already exists
[java] 18:04:43,812 ERROR SchemaExport:167 - Unsuccessful: alter table PRODUCTS add constraint FKF2D1C16494B72FB3 foreign key (PROVIDER_ID) references PROVIDER
[java] 18:04:43,812 ERROR SchemaExport:168 - Can't create table '.\provider_products\#sql-2fc_88.frm' (errno: 150)
[java] Hibernate: insert into PROVIDER (furnizor, agent, fix, mobil, web, PROVIDER_ID) values (?, ?, ?, ?, ?, ?)
[java] The provider ID: 15
[java] *********************** BINE BINE *************************
[java] ++++++++++++++++++++++++ BINE BINE +++++++++++++++++++++++++
[java] Hibernate: select provider0_.PROVIDER_ID as PROVIDER1_0_, provider0_.furnizor as furnizor0_0_, provider0_.agent as agent0_0_, provider0_.fix as fix0_0_, provider0_.mobil as mobil0_0_, provider0_.web as web0_0_ from PROVIDER provider0_ where provider0_.PROVIDER_ID=?
[java] Hibernate: select products0_.PROVIDER_ID as PROVIDER6_1_, products0_.PRODUCT_ID as PRODUCT1_1_, products0_.PRODUCT_ID as PRODUCT1_0_, products0_.produs as produs1_0_, products0_.pret as pret1_0_, products0_.cantitate as cantitate1_0_, products0_.PRODUCT_DATE as PRODUCT5_1_0_, products0_.PROVIDER_ID as PROVIDER6_1_0_ from PRODUCTS products0_ where products0_.PROVIDER_ID=?
[java] ------------------------ BINE BINE --------------------------
[java] org.hibernate.PropertyValueException: not-null property references a null or transient value: providerproducts.Product.provider


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 11:00 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Set casade="all" on the set in provider for products.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 2:58 am 
Newbie

Joined: Wed Oct 19, 2005 4:09 am
Posts: 5
Location: Romania
I'm sorry but is not working... Look here is my tabel PRODUCTS:


+------------+--------+--------+-----------+---------------------+-------------+
| PRODUCT_ID | produs | pret | cantitate | PRODUCT_DATE |PROVIDER_ID |
+------------+--------+--------+-----------+---------------------+-------------+
| 1 | lapte | 12 | 12 | 2005-10-19 16:23:22 | [NULL] |
| 2 | lapte | 12 | 12 | 2005-10-19 16:31:39 | [NULL] |
| 3 | lapte | 12 | 12 | 2005-10-19 16:38:36 | [NULL] |
| 4 | lapte | 12 | 12 | 2005-10-19 16:43:35 | [NULL] |
| 5 | lapte | 12 | 12 | 2005-10-19 16:45:05 | [NULL] |
| 6 | lapte | 12 | 12 | 2005-10-19 16:45:48 | [NULL] |
| 7 | lapte | 12 | 12 | 2005-10-19 16:46:09 | [NULL] |
| 8 | lapte | 12 | 12 | 2005-10-19 16:46:43 | [NULL] |
| 9 | lapte | 12 | 12 | 2005-10-19 16:47:17 | [NULL] |
| 10 | lapte | 12 | 12 | 2005-10-19 16:47:57 | [NULL] |
| 11 | lapte | 12 | 12 | 2005-10-19 16:48:21 | [NULL] |
| 12 | lapte | 12 | 12 | 2005-10-19 16:49:39 | [NULL] |
| 13 | lapte | 12 | 12 | 2005-10-19 17:16:00 | [NULL] |
| 14 | lapte | 12 | 12 | 2005-10-20 10:55:16 | [NULL] |
+------------+--------+--------+-----------+---------------------+-------------+
The PROVIDER_ID field is NULL.... this is the problem I don't know how to say that the PROVIDER_ID from PROVIDER table to be the same with PROVIDER_ID from PRODUCTS table.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 3:55 am 
Newbie

Joined: Wed Oct 19, 2005 4:09 am
Posts: 5
Location: Romania
I've change the file hbm.xml llike this:

provider.hbm.xml:

<hibernate-mapping>

<class name="providerproducts.Provider" table="PROVIDER">
<id name="id" column="PROVIDER_ID">
<generator class="increment"/>
</id>

<property name="furnizor"/>
<property name="agent"/>
<property name="fix"/>
<property name="mobil"/>
<property name="web"/>


<set name="products">
<key column="PROVIDER_ID"
not-null="true"/>
<one-to-many class="providerproducts.Product"/>
</set>

</class>

</hibernate-mapping>

product.hbm.xml:

<hibernate-mapping>

<class name="providerproducts.Product" table="PRODUCTS">
<id name="id" column="PRODUCT_ID">
<generator class="increment"/>
</id>

<property name="produs"/>
<property name="pret" type="float"/>
<property name="cantitate" type="float"/>
<property name="data" type="timestamp" column="PRODUCT_DATE"/>

</class>

</hibernate-mapping>

and ProviderManager looks like this:

import java.util.Calendar;


import org.hibernate.*;

import providerproducts.Product;
import providerproducts.Provider;


public class ProviderManager {

private Calendar currentDate = Calendar.getInstance();

public static void main(String[] args) {
ProviderManager mgr = new ProviderManager();
// Long d = new Long(1);
try
{
mgr.createAndStoreProvider("Sanda","cucu","0256321425","0740253652","www.sanda.ro");

mgr.createAndStoreProduct("lapte",12,12);

mgr.createAndStoreProvider("Panda","cucu","0256321425","0740253652","www.sanda.ro");

mgr.createAndStoreProduct("lapte",42,13);

HibernateUtil.sessionFactory.close();
}
catch(Exception e)
{
System.out.print(e);
}
}

private void createAndStoreProvider(String furnizor, String agent, String fix, String mobil, String web) throws HibernateException{

Session session = HibernateUtil.currentSession();

Transaction tx = session.beginTransaction();

Provider theProvider = new Provider();


theProvider.setFurnizor(furnizor);
theProvider.setAgent(agent);
theProvider.setFix(fix);
theProvider.setMobil(mobil);
theProvider.setWeb(web);

session.save(theProvider);

tx.commit();

System.out.println("The provider ID: " + theProvider.getId());
HibernateUtil.closeSession();
}


private void createAndStoreProduct(String produs, float pret, float cantitate) throws HibernateException{


Session session = HibernateUtil.currentSession();
//System.out.println("*********************** BINE BINE *************************");
Transaction tx = session.beginTransaction();

Product theProduct = new Product();
// Provider tryProvider = new Provider();
//Provider aProvider = (Provider) session.load(Provider.class, tryProvider.getId());



theProduct.setProdus(produs);
theProduct.setPret(pret);

theProduct.setCantitate(cantitate);
theProduct.setData(currentDate.getTime());
//System.out.println("++++++++++++++++++++++++ BINE BINE +++++++++++++++++++++++++");

//aProvider.getProducts().add(theProduct);

//System.out.println("------------------------ BINE BINE --------------------------");

session.save(theProduct);

tx.commit();
//System.out.println("*********************** BINE BINE *************************");
HibernateUtil.closeSession();
}

}

Here is what is happening:

[javac] Compiling 5 source files to D:\wrk\ssta\workspace\ProviderHybernate\bin
run:
[java] 11:51:40,875 WARN Configurator:126 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/wrk/ssta/workspace/ProviderHybernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
[java] 11:51:41,640 ERROR SchemaExport:167 - Unsuccessful: create table PRODUCTS (PRODUCT_ID bigint not null, produs varchar(255), pret float, cantitate float, PRODUCT_DATE timestamp, PROVIDER_ID bigint not null, primary key (PRODUCT_ID))
[java] 11:51:41,640 ERROR SchemaExport:168 - Table 'products' already exists
[java] 11:51:41,640 ERROR SchemaExport:167 - Unsuccessful: create table PROVIDER (PROVIDER_ID bigint not null, furnizor varchar(255), agent varchar(255), fix varchar(255), mobil varchar(255), web varchar(255), primary key (PROVIDER_ID))
[java] 11:51:41,640 ERROR SchemaExport:168 - Table 'provider' already exists
[java] 11:51:41,765 ERROR SchemaExport:167 - Unsuccessful: alter table PRODUCTS add constraint FKF2D1C16494B72FB3 foreign key (PROVIDER_ID) references PROVIDER
[java] 11:51:41,765 ERROR SchemaExport:168 - Can't create table '.\provider_products\#sql-2f0_2c.frm' (errno: 150)
[java] Hibernate: insert into PROVIDER (furnizor, agent, fix, mobil, web, PROVIDER_ID) values (?, ?, ?, ?, ?, ?)
[java] The provider ID: 11
[java] org.hibernate.PropertyValueException: not-null property references a null or transient value: providerproducts.Product._productsBackref


So, I can't understand why in table PRODUCTS the field PROVIDER_ID how it is populate.... I have to make something in ProviderManager?
Thanks!


Top
 Profile  
 
 Post subject: Re: Why I have this error?
PostPosted: Mon May 04, 2009 7:47 pm 
Newbie

Joined: Mon May 04, 2009 7:40 pm
Posts: 1
having same problem.. seems this one worked out.
pret personnel


Top
 Profile  
 
 Post subject: Re: Why I have this error?
PostPosted: Fri Jun 12, 2009 5:23 am 
Newbie

Joined: Fri Jun 12, 2009 5:21 am
Posts: 2
Thank you, this is good news for other visitors

pret personnel


Top
 Profile  
 
 Post subject: Re: Why I have this error?
PostPosted: Fri Jun 12, 2009 9:50 am 
Beginner
Beginner

Joined: Fri Feb 13, 2009 5:27 am
Posts: 36
Location: India
HI... piscot_atomic....

may this works ..change ur hibernate configuration file....


<property name="hbm2ddl.auto">update</property> instead of
<property name="hbm2ddl.auto">create</property>


ok bye.

_________________
parag


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.