Thanks, much appreciated.  If I come up with anything, I'll post an article
on it.

--Scott


On Wed, May 26, 2010 at 5:34 PM, Matt Raible <m...@raibledesigns.com> wrote:

> It should just be a matter of reading your POJOs properties and displaying
> them appropriately. Might take some debugging on your part.
>
> On May 26, 2010, at 3:32 PM, Scott Mead wrote:
>
> Thanks Matt,
>
>  Do you have any pointers on where to get started?  I'd appreciate it.
>
> --Scott
>
>
> On Wed, May 26, 2010 at 5:31 PM, Matt Raible <m...@raibledesigns.com>wrote:
>
>> AppFuse's "gen" command doesn't work with any sort of relationships -
>> you'll have to manually develop the UI for that.
>>
>> On May 26, 2010, at 3:28 PM, Scott Mead wrote:
>>
>> > Hello all,
>> >
>> > I'm brand new to Appfuse, if I've left something out, please let me
>> know.  I've got a couple of POJOs that I'm trying to map to some database
>> tables.  The basic idea will be (I'm using Postgres):
>> >
>> > create table addresses (
>> >      id int primary key,
>> >      streetAddress varchar(255)
>> >      );
>> >
>> >
>> > create table organizations (
>> >       id int primary key,
>> >       org_nm varchar(255),
>> >       addr_id int REFERENCES addresses(id) );
>> >
>> >
>> > Now, I first tried to use: appfuse:gen-model.  This just plain didn't
>> work at all.  I looked around and it seems like you guys said it was a
>> problem with the hibernate tools underneath.  I figured that I'd just create
>> the POJOs and use hibernate annotations to do the relationships between the
>> objects / tables, but I think i'm doing something wrong.
>> >
>> >    I can get my 'Addresses' table to function just find by creating the
>> 'Addresses' POJO and running appfuse:gen etc...  After I do that, I can
>> login to appfuse and do full CRUD on the Addresses table.  However, when I
>> try to do the same thing with Organizations, I get the Organizations table,
>> and I get the JSF frontend, but it doesn't show the 'addr_id' field.  (See
>> attached screenshot).
>> >
>> > Then, when I click on a row, I get the attached stack trace (st.txt).
>> >
>> > The annotations I'm using are:
>> >
>> >     @Id @GeneratedValue (strategy = GenerationType.AUTO)
>> >     private Long id;
>> >     private String org_nm;
>> >     @ManyToOne()
>> >     @JoinColumn(name="addr_id")
>> >     private Addresses addr_id;
>> >
>> > I'm honestly not sure how to proceed at this point.  Any thoughts?
>> >
>> > Thanks in Advance
>> >
>> >
>> >
>> <st.txt><NoIDField.png>---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> > For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>
>

Reply via email to