• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

many-to-many Not this saving, please help me

 
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not this saving, when I get a table that he gets the right scheme and select the right mounts, the more I make a save when he could not mount correctly and get the scheme wrong...

the output is this:

SystemOut O Hibernate:
select
grafosdado0_.ID_USUARIO as ID1_12_0_,
grafosdado0_.NM_USUARIO as NM2_12_0_
from
GESTOR_ASSOCIACOES.USUARIO grafosdado0_
where
grafosdado0_.ID_USUARIO=?
[11/13/08 10:18:55:781 BRST] 00000063 SystemOut O Hibernate:
select
max(ID_USUARIO)
from
USERADM_INTRANET.USUARIO
[11/13/08 10:18:56:062 BRST] 00000063 JDBCException W SQL Error: -204, SQLState: 42704
[11/13/08 10:18:56:078 BRST] 00000063 JDBCException E "USERADM_INTRANET.USUARIO" is an undefined name.
[11/13/08 10:18:56:109 BRST] 00000063 JDBCException W SQL Error: -727, SQLState: 56098
[11/13/08 10:18:56:156 BRST] 00000063 JDBCException E An error occurred during implicit system action type "2". Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" and message tokens "USERADM_INTRANET.USUARIO".
[11/13/08 10:18:56:343 BRST] 00000063 JDBCException W SQL Error: -727, SQLState: 56098
[11/13/08 10:18:56:359 BRST] 00000063 JDBCException E An error occurred during implicit system action type "2". Information returned for the error includes SQLCODE "-204", SQLSTATE "42704" and message tokens "USERADM_INTRANET.USUARIO".
[11/13/08 10:19:36:328 BRST] 00000063 SystemOut O TPS: EXCEPTION: org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator
[11/13/08 10:19:36:328 BRST] 00000063 SystemOut O TPS: EXCEPTION: br.com.tpd.framework.DAOException: org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator
[11/13/08 10:19:36:734 BRST] 00000063 SystemOut O [2008-11-13 10:19:36,734|ERROR |SaveOrUpdateUserAction.execute():82] -- #### Error insert RemoteException occurred in server thread; nested exception is:
java.rmi.MarshalException: CORBA MARSHAL 0x4942f896 No; nested exception is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Mismatched serialization UIDs : Source (Rep. IDRMI:java.lang.Throwable:F8678B4F4D2EB705 5C635273977B8CB) = D5C635273977B8CB whereas Target (Rep. ID RMI:br.com.tpd.framework.DAOException:7DFDC0413F49F03D:0000000000000001) = 0000000000000001 vmcid: IBM minor code: 896 completed: No
[11/13/08 10:19:36:281 BRST] 00000063 SystemErr R org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)










This table uses the scheme more GESTOR_ASSOCIACOES the layout scheme is the USERADM_INTRANET.


when I need to send a USUARIO save, he will ASSOCIACOES in the table and save the user there with ID_CLIENTE and ID_SISTEMA that were in set of USUARIO... and I do not have mapi this table that she has no id only has the primary keys of the USUARIO, CLIENTE and SISTEMA.

now thank you
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thalys, please check your private messages.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic