I am building an application using jboss3.0.8 and my database is PostgreSQL. I am having some difficulty understanding Container Managed Relationships. How does JBoss manage the relationships between my tables? If I have a foreign key in my table so how does that foreign key field get populated if I have declared it as a relationship field rather than a persistent field?? Does JBoss have some built-in EJBQL that will automatically populate my foreign key field?