Posts

hibernate - HQL and one-to-many queries -

I have hibernate domain objects that look like this: class player {list & Gt; Items & gt; ; List; } Category item {list & lt; Attraction & gt; Sorcery; } Class exchanges {Boolean supplementary enchantment; } I need to create a HQL query that gives me a list of all the players who have at least one item on which there is a charm in which IsuperiorEnchantment is the flag set I can not understand a way of expressing it in HQL for my life. Any thoughts? Considering the appropriate mapping on all of the above, the query you are looking for is:

iphone - MKMapView questions -

I am working with the MKMapView control (SDK v3.0) in the simulator for a few days. I'm able to map an arbitrary place, zoom it, drop a pin, and add an annotation. I'm still a bit fuzzy on the full capabilities of the MKMapView control (outside the simulator), though. If the 'shows the user location' property of the Mkmap scenario is checked, the iPhone Simulator is a pin at Apple's headquarters, obviously the simulator is not really geocoding the actual location of the phone. Does this functionality mean, however, is 'one' example of CLLocationManager in Mkmap scenario? Another way is, does the Mkmapview, when 'Show user location' option is selected, to locate the phone's location and drop the pin? If so, does this without giving permission to get this place? Can I set the default zoom level in IB? Thank you for your time, Craig Buchanan Here's an example of zooming programmatically (there is no way IB to do this): MKCoor...

KML and delete old KMLs files -

Can I delete temporary locations in Google Earth before adding a new location mark using a kmili file? I do not think there is any way to delete before adding a new file, but you can create a network link Can set up which indicates the file and then the set refresh interval or setting ends.

xml serialization - How can i change the XmlElement attribute OUTSIDE the class? -

I have a class property that is generated in a suitable manner with its appropriate XmlElement attribute. I am the successor of this class and expose it as a parameter on a webservice, for which a WSDL is automatically generated magically. I have been told that the XML attribution feature of the property needs to be changed from its place, and how can I make this new feature out of the outline generated by WSDL? Ie: either in the inherited class, or in the structure of the partial class? You must obtain another class, and implement IXmlSerializable . The good news is that you should be able to get XML serializer for all or most of your work. In the Readxml method, you will call deserillise, you will serialize in the written XML method. You'll use different elements to specify names. I'm not 100% sure that this will be enough to replace the automatically generated WSDL.

c# - How to tell if an IEnumerable<T> is subject to deferred execution ? -

I always believed that if I was selecting (x => ... ) The context of LINQ for the objects, then the new collection will be created immediately and will remain stable. I am not sure why I assumed it, and this is a very bad assumption, but I did it. I often .toList () not anywhere else but not in this case. This code indicates that a simple 'selection' is subject to deferred execution: var random = new random (); Var animal = new [] {"cat", "dog", "mouse"}; Var randomNumberOfAnimals = animals.Select (x => Math.floor (random.NextDouble (* 100) + "+ + + +" + "S"); Foreign currency (in the form of random number of pomegranate) {testContextInstance.WriteLine ("there are" + I); } Foreach (I am numbered atoms in random) {testContextInstance.WriteLine ("and now, there are" + i); } This gives the following output (random function every time the archive repeats): There are 75 cats, 28 dogs are 6...

web services - compact-framework cannot establish connection to network error -

I'm trying to use Pocket PC emulator (vs. 2008) to connect to the web service on my standby. No matter what I try I can not connect. I am using the IP address of my laptop in the URL. This works very well with the URL on my laptop, I can not get the emulator to hit it and I have the exception to "Can not establish a network connection". As long as my eyes do not pop in my skull, no other answer can be found. Thank you in advance Two you have the Is ping? Maybe tracert ? If you have a network problem, you must diagnose the network. For example, if you have ping for your laptop or even telnet , you have a more basic network problem and there is no problem with web service.

database - Convert Access queries to SQL Server views when using DTS -

I am using DTS to import data from an Access database in STM Server 2005. It seems that DTS accesses queries as an import table, rather than ideas, which will not work for me, is there any way around it? You can choose not to include saved queries (at least when you use SSMA I suggest you use it instead of DTS anyway ... it works to do a better job). You can find it here: It is not clear whether you will continue using MS-Access as a front end or not? If you are planning on using access, you do not actually need to convert those saved query (views) to SQL Server. Most of the saved questions in access will work in the form of a previously (now linked tables with SQL Server). You only need to change / decide the saved stars that move at slow speed. In other words, most questions can be used and it needs to be run. It is only slow and especially with the total work (amount, sum, etc., which produce many records, but produce some rows). Such questions are actually being take...