Doh typo there, should have been @Column rather than @JoinColumn
BarryDev wrote:
>
> Oh forgot that I'd change the field's name to match the column in that
> class. If you want to explicitly join a field to a column use the
> @JoinColumn(name = "whatever") annotation.
>
--
View this message
Em Mon, 27 Oct 2008 11:55:24 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
Thank you very much for your help.
You're welcome again. :)
Tutorials on this sort of thing are SO hard to find at the moment(and
not be outdated severely or just skim the very surface).
Tapestry 5 is new,
our current
severely outdated use of T3:)
Thanks again,
--James
-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:[EMAIL PROTECTED]
Sent: October-27-08 11:13 AM
To: Tapestry users
Subject: Re: T5: Using with hibernate and Mysql
Em Mon, 27 Oct 2008 10:36:39 -0300, James
Em Mon, 27 Oct 2008 10:36:39 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
I cannot figure out how to produce the SelectionModel from a list of
occupations. I am not sure if I am just being dumb and have been staring
at this too long now or what:)
Use an SelectModel implementation. Y
Paula Figueiredo [mailto:[EMAIL PROTECTED]
Sent: October-27-08 9:50 AM
To: Tapestry users
Subject: Re: T5: Using with hibernate and Mysql
Em Mon, 27 Oct 2008 09:42:25 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
> Thank you again:)
You're welcome again! :)
> I u
Ooops, one detail was forgotten: in order to your occupation field to
appear, you need to add it to the BeanModel used by the BeanEditForm. If
you do not provide one, one is created automatically, and this one does
not include fields that are other entity objects. The easily way to do
that is usin
Em Mon, 27 Oct 2008 09:42:25 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
Thank you again:)
You're welcome again! :)
I used:
@OnEvent(component = "userEditor", value=Form.PREPARE) public void
instantiateObject() {
user = new User();
}
This produces the form
ist so how do
you handle foreign keys in beaneditform?
--James
-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:[EMAIL PROTECTED]
Sent: October-27-08 9:27 AM
To: Tapestry users
Subject: Re: T5: Using with hibernate and Mysql
Em Mon, 27 Oct 2008 09:20:01 -0300, James Sherwood
Em Mon, 27 Oct 2008 09:20:01 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
Thank you, it seems to have created all the classes with annotations
correctly!
You're welcome!
I tried to create a beaneditform off the User class but I get the error:
Exception instantiating instance of com
edo [mailto:[EMAIL PROTECTED]
Sent: October-26-08 7:38 PM
To: Tapestry users
Subject: Re: T5: Using with hibernate and Mysql
Em Sun, 26 Oct 2008 16:23:46 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
> Thank you,
Hi, James!
> You wouldn't have a link to a demo of the J
Em Sun, 26 Oct 2008 16:23:46 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
Thank you,
Hi, James!
You wouldn't have a link to a demo of the JPA generation.
I use eclipse to generate it and cannot find such a generation type.
The instructions I used were here:
http://www.wikihow.com/Ge
ago H. de Paula Figueiredo [mailto:[EMAIL PROTECTED]
Sent: October-26-08 2:45 PM
To: Tapestry users
Subject: Re: T5: Using with hibernate and Mysql
Em Sun, 26 Oct 2008 11:31:49 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
> The problem is, when I try to run it I get this erro
Em Sun, 26 Oct 2008 11:31:49 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
The problem is, when I try to run it I get this error:
Could not determine type for: java.util.Set, for columns:
[org.hibernate.mapping.Column(userses)]
It seems like you chose the Hibernate Core generation type
ent: October-26-08 10:35 AM
To: users@tapestry.apache.org
Subject: RE: T5: Using with hibernate and Mysql
Oh forgot that I'd change the field's name to match the column in that
class.
If you want to explicitly join a field to a column use the @JoinColumn(name
= "whatever")
Oh forgot that I'd change the field's name to match the column in that class.
If you want to explicitly join a field to a column use the @JoinColumn(name
= "whatever") annotation.
--
View this message in context:
http://www.nabble.com/T5%3A-Using-with-hibernate-and-Mysql-tp20166018p20173523.htm
James Sherwood wrote:
>
> I still cannot find a good Tapestry-Hibernate tutorial though. I have a
> rather large database created and would like to generate objects from
> it(this tutorial is the other way around).
>
Do you mean instead of just declaring an entity class and having hibernate
You're on the right track. Tapestry-hibernate essentially provides the
"session per request" paradigm in an easy to use way within Tapestry pages.
In the java file for a page you can now add:
@Inject
private Session session;
And any of the methods can use the session to pull data from your databas
Sherwood [mailto:[EMAIL PROTECTED]
Sent: October-25-08 2:11 PM
To: Tapestry users
Subject: T5: Using with hibernate and Mysql
Hello,
I was wondering if anyone has a good example of using Tapestry 5 with
Hibernate and Mysql or can tell me what I am doing wrong
I use Eclipse/Tomcat/Mysql.
I
Hello,
I was wondering if anyone has a good example of using Tapestry 5 with
Hibernate and Mysql or can tell me what I am doing wrong
I use Eclipse/Tomcat/Mysql.
I created a new project using Maven:
mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quick
19 matches
Mail list logo