I'm using appfuse 2.0.2 and need to modify the model pojo templates We are using c2j = Cfg2JavaTool c2h = Cfg2HbmTool pojo = EnityPojoClass for writing freemarker templates in our project.
Requirement : Generate POJOs with JPA annotations from Database. We require to identify OneToOne relationships between tables. However in c2h we can only find methods relating to ManyToOne,OneToMany and ManyToMany and they are working fine. Is some other way to find OneToOne Relationship? If the foreign key of one table is unique and is associated with another table.This means OneToOne. So can we find this using the methods in c2j,c2h or pojo? pojo.generateAnnTableUniqueConstraint() generates the constraint in the pojo which has the foreignkey but how can the other associated table detect the same? -- View this message in context: http://www.nabble.com/Identify-OneToOne-Relationship-Between-tables-in-FreeMarker-Templates-JPA-Annotations-tp22901986s2369p22901986.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net