[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-29 Thread gaboo
It workd if I use property name=hibernate.hbm2ddl.auto value=update/.

Thanks!
Anyway, I'll experiment a bit more and I will probably report this to hibernate.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996848#3996848

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-28 Thread gaboo
Dunno If it's related to hibernate ot not, maybe. Please tell me if so and I 
will report the problem to hibernate.

Here is more information : if I have a char(X) column in a mysql table which is 
reverse engineered using generate-entities (which runs successfully) I get 
these errors in my jboss as output :

11:25:23,740 INFO  [SchemaValidator] Running schema validator
  | 11:25:23,740 INFO  [SchemaValidator] fetching database metadata
  | 11:25:23,763 INFO  [TableMetadata] table found: lrb.abocc
  | 11:25:23,763 INFO  [TableMetadata] columns: [dt_bgn_test, dp_rglt_post, 
dp_use, dt_end_test, nb_div, nb_ren, dt_end, dt_creat, dt_bgn, nb_ofs, tx_tva, 
mt_ht, dt_modif, ct_pers, ct_ref, ty, lb, ct]
  | 11:25:23,765 WARN  [ServiceController] Problem starting service 
persistence.units:ear=lrbseamtest.ear,unitName=lrbseamtest
  | javax.persistence.PersistenceException: org.hibernate.HibernateException: 
Wrong column type: ty, expected: varchar(4)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
  | at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 

and then at the end :

11:25:26,212 INFO  [StartupServletContextListener] Serialization provider : 
class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
  | 11:25:26,250 INFO  [EARDeployer] Started J2EE application: 
file:/home/gaboo/progs/jboss-4.0.5.GA/server/default/deploy/lrbseamtest.ear/
  | 11:25:26,251 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:ear=lrbseamtest.ear,unitName=lrbseamtest
  |   State: FAILED
  |   Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Wrong column type: ty, expected: varchar(4)
  |   I Depend On:
  | jboss.jca:service=DataSourceBinding,name=lrbseamtestDatasource
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:ear=lrbseamtest.ear,unitName=lrbseamtest
  |   State: FAILED
  |   Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Wrong column type: ty, expected: varchar(4)
  |   I Depend On:
  | jboss.jca:service=DataSourceBinding,name=lrbseamtestDatasource

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996607#3996607

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996607
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-28 Thread gaboo
one more note : I tried with a char(255) and i get the same error.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996608#3996608

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996608
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-28 Thread [EMAIL PROTECTED]
report to hibernate tools jira with the (minimal) schema that reproduces the 
error - thank you.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996626#3996626

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996626
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-28 Thread [EMAIL PROTECTED]
In the meantime you can turn schema validation off in your persistence.xml. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996637#3996637

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996637
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-27 Thread gaboo
I tried with latest CVS seam version and seam gen did not worked :

20:50:13 [EMAIL PROTECTED]:~/workspace/jboss-seam$ ./seam setup
  | Buildfile: build.xml
  | 
  | BUILD FAILED
  | /home/gaboo/workspace/jboss-seam/seam-gen/build.xml:15: taskdef class 
org.jboss.seam.tool.PathFilenameTask cannot be found
  | 
  | Total time: 0 second

I also tried with seam 1.1GA and replace its hibernate-tools.jar with the one 
from my CVS checkout : same errors as before.

Any idea on how to get a working fixed version of seam ?
Thank you !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996507#3996507

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996507
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-27 Thread [EMAIL PROTECTED]
Try building clean - it is there.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996513#3996513

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996513
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-27 Thread gaboo
Indeed, it works :)

But, I found another problem, maybe it is configurable :

generate-entities works, but crashes once deployed if there is a column which 
type is char(X) with X  1.

It works with X=1.

For example, it works with the above abocc table if I change ty and lb columns 
to be varchar instead of char.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996555#3996555

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996555
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-27 Thread [EMAIL PROTECTED]
For database?  I tried with mysql.  A column of type char(255) mapped was 
reverse engineered to a String.

If it looks like a hibernate bug, please report it to the hibernate tools team. 
 If it is a seam-gen issue, feel free to open up a JIRA case here.  (or post 
more info so I can)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996561#3996561

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996561
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-09 Thread [EMAIL PROTECTED]
yes, this was a bug in the build of hibernatetools used in seamgen. i have 
fixed it in hibernatetools svn and is about to commit a fixed build to seamgen.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992411#3992411

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992411
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-07 Thread gaboo
no ideas ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992026#3992026

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992026
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error

2006-12-07 Thread petemuir
Put a comma between the two @UniqueConstraints.  You should also report to the 
hibernate-tools guys I think as it is an error in the templates.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992073#3992073

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user