-
When I try to create a new entity, the "Select Tables.." window is empty.
I suspect this is because i'm using an Oracle9i database and the schema of the user is empty. The user should have access to other schemas, I just don't see anything in the UI other than a big white box and [select] and [cancel] buttons.
2009-09-11 18:14:52 UTC by adamproctor
-
Although searching using Criteria with several properties you can use
criteria.add(Restrictions.sqlRestriction("{alias}.nameofcolumn in the table like "+entity.get*())); treating the FKs.
Thanks.
2009-06-11 12:28:31 UTC by eroliva
-
I'd to know why the FK relations are generated by the templates as transient since to do search of several fields using Criteria or Example does not recognize these properties.
Thanks.
2009-06-11 10:58:51 UTC by eroliva
-
I've generated the application from the supplied XMI-file. The application works, but when I try to add a Person for example, it states me that id is required.
I've created the table in MySql with the auto-generated SQL-statements, so this column is auto-increment.
Any help would be welcome.
2009-05-05 05:41:31 UTC by somersst
-
I answer myself:
I have to point strightly the path of the applicationContext.xml in the Test class:
private static final String[] CONTEXT = { "file:/your_own_path/WEB-INF/applicationContext.xml",
"file:/your_own_path/WEB-INF/classes/hibernate.cfg.xml"};
thanks.
2009-03-30 14:30:42 UTC by eroliva
-
Hi Rudie ,
I tested the generated ***sessionWebServiceTest with eclipse>junit working successfully but when I try to test the generated ***sessionTest ,in java-test show the following error:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [WEB-INF/applicationContext.xml]; nested exception is...
2009-03-18 10:15:13 UTC by eroliva
-
When trying to use an entity with a composite primary key where the Java bean field name is not identical with the column name in the database, a Hibernate exception is thrown because the generated query will look for the field name rather than the column name.
Example:
The entity MyEntity uses the composite primary key
String firstName
String lastName
while the columns in the...
2007-11-23 14:00:30 UTC by tschlabach
-
ekkelenkamp committed patchset 1531 of module jag to the JAG CVS repository, changing 1 files.
2006-11-13 07:54:51 UTC by ekkelenkamp
-
ekkelenkamp committed patchset 1530 of module jag to the JAG CVS repository, changing 1 files.
2006-10-09 06:37:12 UTC by ekkelenkamp
-
Should warn on entry of < or > in DB configuration, as
putting these in ant properties makes build error.
2006-10-07 09:17:07 UTC by echinus