Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Thalys de Aguiar Gomes
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thalys, please check your private messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic