[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Associate object, in Hibernate, via a Map of Sets: Map
Hi, Does anyone know how to associate, in Hibernate, to two classes via a map of sets: SortedMap I have serached the forums and read all the Hibernate doco, but could not find such a thing explained. To give some context: | +--+ has +--+ departs from +-+ | |DealBundle|| Deal |--| Airport | | +--+ 1 0..* +--+ 1 1 +-+ | |1 | 1 | | arrives at | | +--+ | I have an object, call it a DealBundle, which has a whole lot of Deal objects. The Deal objects are kept in multiple SortedSets which in turn are in a Map keyed by the departure Airport object. | public class DealBundle { | |public longid; | |public SortedMap> | dealsByDepartureAirport; | } | | public class Deal { | |public longid; |public Airport departureAirport; |public Airport arrivalAirport; |public float totalPrice; | } | | public class Airport { | |public longid; |public longIATACode; |public longname; | } | I will appreciate any and every bit advice here because I am at a loss. Cheers, Evan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3892174#3892174 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3892174 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Nukes User] - Re: nukes 1.1RC2 available
Hi All, Is the nukes_filestat table still needed? I have noticed that the following create table statement is missing from setup.ddl. CREATE TABLE `nukes`.`nuke_filestat` | ( `pn_vmid` varchar(16) NOT NULL, | `pn_id` bigint NOT NULL, | `pn_from` bigint NOT NULL, | `pn_length` bigint NOT NULL default '0', | `pn_view_count` bigint NOT NULL default '0', | PRIMARY KEY (`pn_vmid`,`pn_id`,`pn_from`) ); The reason I ask is that JBoss reported the following exception. 10:51:06,656 ERROR [html] Problem when saving snapshots | javax.ejb.CreateException: Error checking if entity exists: | java.sql.SQLException: Base table or view not found, | message from server: "Table 'nukes.nuke_filestat' doesn't exist" Cheers, Evan. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845385#3845385 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845385 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user