I was able to get at the information if I gave the user and password
information of the owner of the table within the sqlServer(2005) database.
That sort of deals with my problem, but I would prefer to use another user.
I checked the permissions and the user I was trying to work with has all
per
I did turn on the logging and also added some print lines within the
HibernateConfigurationTest and found that the select * was not getting any
information back, but it's not sending me any error messages, besides saying
that the object with an existing id is not found. Any other ideas?
tibi-3
did you turn on the logging for queries?
in log4j.properties (by default commented out)
tibi
BoJeevs wrote:
I am using annotations. Here is the class
@Entity
@Table(name="ORG")
public class Organization extends BaseObject {
protected String id;
protected String name;
I am using annotations. Here is the class
@Entity
@Table(name="ORG")
public class Organization extends BaseObject {
protected String id;
protected String name;
protected String topFlag;
/**
* @return String(20) the id
*/
@Id
check your mappings closely
and your database. maybe hibernate expects a column ID and there is a
clomn objectID or id or some missmatch.
if hibernate can't find the column it expects it will be added. so check
your database on newly made columns.
what happens if you do a get all object. do
I have removed the sample data and removed the generation of the table, but
the GenericDaoHibernate is still having an erron the getting the id. Again
this works fine in mysql with sample data populating the database, but when
I moved to an already existing sql server 2005 database it started
hic
yes when you have sample data as your test data your database will be
overwritten.
remove it and you will be fine (or don't run test/integration-tests on
your database)
ciao,
tibi
John Coleman wrote:
Fitzy?
Coleman
On Jul 13, 2007, at 7:56 PM, Bo Jeevs wrote:
Hello all. I am working with
Fitzy?
Coleman
On Jul 13, 2007, at 7:56 PM, Bo Jeevs wrote:
Hello all. I am working with a database used by a different
program, but I really only want to access a few of the fields from
a particular table. I believe I have it mapped correctly, but
instead of using the current database,