-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problems in the SAVE
PostPosted: Thu Oct 21, 2004 8:40 am 
Newbie

Joined: Tue Aug 17, 2004 9:47 am
Posts: 8
I am trying to insert given in the bank using SESSION.SAVE(OBJECT) and i am not obtaining... I print the data of the SQL and I show

"insert into MASTER_KEY (NM_SISTEMA_RESPONSAVEL, NM_TIPO_REDE_DONA_MKEY, CD_REDE_DONA_MKEY, CD_ID_MASTER_KEY, NM_MASTER_KEY, DT_CRIACAO, DT_ULT_ATUALIZACAO) values (?, ?, ?, ?, ?, ?, ?)"

When use FIND functions correctly

The object arrive correctly before the line SESSION.SAVE(OBJECT)...

Somebody knows what it occurs?

Positive Vibrations
Lucas Ferst






Hibernate version: 2.1.6

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 9:52 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
can you reformulate and give java code?

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 10:06 am 
Newbie

Joined: Tue Aug 17, 2004 9:47 am
Posts: 8
I have this code below to create session:


public class HibernateSession {

private static SessionFactory[] sessionFactory;
private static String[] config;
private static final int SIZE = 5;

static {

sessionFactory = new SessionFactory[ SIZE ];
config = new String [ SIZE ] ;
session = new ThreadLocal[ SIZE ];
}

public static final ThreadLocal[] session;

/**
*
* @param cfg
* @return Session
* @throws HibernateException
*
* Retorna Session hibernate conforme a configura


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.