Makes sense and worked too. I guess my confusion comes from the fact that I
remember the last time I ran appgen I was sure (at least I thought I was)
that I didn't have to touch any code manually. No matter even like this,
appgen is a great tool for getting a code base to work with in a hurry.
Th
You need to register the mapping file in the sessionFactory bean in
applicationContext-hibernate.xml.
Hope this helps,
Matt
On 6/13/07, LukeS <[EMAIL PROTECTED]> wrote:
Thanks, Matt. App starts now, but I get the in the view when I try and hit
the controller:
Data Access Failure
Country i
Thanks, Matt. App starts now, but I get the in the view when I try and hit
the controller:
Data Access Failure
Country is not mapped [from Country]; nested exception is
org.hibernate.hql.ast.QuerySyntaxException: Country is not mapped [from
Country]
Doesn't the mapping occur in the doclets tag
You need at least one validation rule for your POJO - try adding
@spring.validator type="required" to one of the setters in your POJO.
Matt
On 6/13/07, LukeS <[EMAIL PROTECTED]> wrote:
I have an existing schema:
create table country(
countryId bigint not null auto_increment,
countryNa
I have an existing schema:
create table country(
countryId bigint not null auto_increment,
countryName varchar(50),
primary key (countryId),
index cPRIMARY (countryId)
)
engine = InnoDB;
Using Appgen I have made some code with this table, however on start up I
get the fol