Kurt, Tom,
Have a question regarding the UddiEntity entity in the persistence layer. It appears its function is to be the uber-parent of all "uddi entities" - the principles being BusinessEntity, BusinessService, BindingTemplate, and Tmodel. http://uddi.org/pubs/uddi-v3.0.2-20041019.htm#_Toc85908007 So, each one of these principle entities in the domain model contains a reference to its own UddiEntity. In the DB schema, this simply translates to the entity key in the uddi_entity table, and as a result, each entity's primary key has a foreign key constraint tied to this table. My question is: I'm curious as to the usefulness of this structure. At first, I thought it fit well, because it allowed me to create a persist method with a single signature (ie. persistEntity(UddiEntity ue)). However, as I'm building out more of the logic - particularly as I'm starting to incorporate the built-in UDDI hierarchies - it is causing problems. It is interfering with the natural cascading saves that can exist in the UDDI hierarchy. Because each "entity" has this reference, I receive this persistence error, "object references an unsaved transient instance.", when trying to save an entity with child "uddi entities" (I'm using a very simple example of one BusinessEntity with one BusinessService - and the BusinessService has no child entities). There might be a use for this structure that I'm not seeing. But as it stands with the publishing API, it clashes with the ability to perform cascading saves. I can work with it if need be, but I'd have to write code that saves each "uddi entity" separately, even when the entity is provided as a child of a parent entity. -Jeff
