NHibernate: mapping a dictionary of lists
Hi, My class has a field of type Dictionary<string, List<string>>. What's the best way to map it with NHibernate? I'd better leave it as a field, don't want to expose it. Thanks a lot! ulu ...
Hi, My class has a field of type Dictionary<string, List<string>>. What's the best way to map it with NHibernate? I'd better leave it as a field, don't want to expose it. Thanks a lot! ulu ...
I'm currently looking at server prices and IIS6 is looking cheaper then IIS7. I want to try out some ASP.NET MVC w/ extensionless URL's and from what I see, I can use an ISAPI or a Wild Card Mapping option. I'm planning to stream quite a lot of media and I'm curious how the Wild Card Mapping option would affect my performance. Has a...
Hi there, I have been using automapper pretty successfully lately but i have come across a small problem for mapping the Dest to a variable not a available in the Src.... An example explains it better.. basically i am mapping from dest to src as per instructions .. all working well but i need to now map a destination to a variable named...
Hi, I'm having one self-referencing class. A child has a reference to its parent and a parent has a list of children. Since the list of children is ordered, I'm trying to map the relation using NHibernate's . This is my mapping: <class name="MyClass"> <id name="Id"> <generator class="native"/> </id> <list name="Children" cas...
this my question i dont know what to do Let A = {1, 2, 3, 4, 6} and let R be the binary relation on A defined by“x divides y”. (x divides y if and only if there exists an integer z such that xz = y). i. Write R as a set of ordered pairs. ...
Hi there, I have the following construct: class Person { int Id; Foo fooObject; } class Foo { int Id; //some more properties - doesn't matter } the Database is quite simple for this example; Table Person( int Id, int foo_Id) Table Foo( int Id, some more properties...) I often get a Person Object which contains an initialize...
I have an abstract base class for audit properties. For brevity say it has one property Public MustInherit Class AbstractAuditableEntity ... Public Property CreatedTime() As DateTimeOffset ... End Class And then my auditable domain objects inherit from this class Public Class Source Inherits AbstractAuditableEntity ...
Here is my problem. I have a build script which adds mappings to a certain workspace dynamically, then unmaps them when it is through. I am worried that if (when) my script fails before the unmapping is done, the mappings will holdover until the next time and screw things up. So I would like to unmap the entire workspace at the start of...
I'd like to do something like: ArrayList<CustomObject> objects = new ArrayList<CustomObject>(); ... DozerBeanMapper MAPPER = new DozerBeanMapper(); ... ArrayList<NewObject> newObjects = MAPPER.map(objects, ...); Assuming: <mapping> <class-a>com.me.CustomObject</class-a> <class-b>com.me.NewObject</class-b> <field> <...
Why is it important? what are advantage according to XML mapping? Can you explan these? thank you. ...
Is hibernate mapping necessary a lot? Which mapping is important for project? one-to-one, many-to-one, many-to-many?? ...
I have a class ClassA mapped to TableA. I also have a mapping for it and it has an entity-name of EntityA. Now, I need to create another mapping named EntityATwo between ClassA for TableA, but slightly different. Although I could copy-paste the mapping of EntityA to EntityATwo, it would be very difficult to maintain that. Thus, my q...
Does Postgres' Spatial plugin, or any Spatial package for that manner, factor in the altitude when calculating the distance between 2 points? I know the Spatial packages factor in the approximate curvature of the earth but if one location is at the top of a mountain and the other location is close to the sea - it seems like the calculat...
Excerpts from an existing schema: User Table: PK int UserId, string UserName, etc Vendor Table: PK int VendorId, string VendorName, etc UserVendor Table: PK int UserId, PK int VendorId, PK bit IsPrimary //note the composite key There is no FK between User and UserVendor (don't ask, it's a legacy database). I'd like to produce a Us...
I'm converting a Wordpress blog to Drupal and need to map the WP paths to the new Drupal ones. What's the best practice for doing this? There are only around a hundred pages to map. I've been experimenting with the URL Alter module, which provides an alternative to messing with custom_url_rewrite functions settings.php but keep getting 4...
New to FluentNHibernate =D I have a parent/children classes as follows: public class Parent { public virtual int ID { get; private set; } public virtual string Name { get; set; } public virtual IList<Child> Children { get; set; } } public class Child { public virtual int ID { get; private set; } public virtual stri...
I am working on a php program that requires javascript on every form control. Once the onblur event takes place the value will automatically be sent to the server to update the database. I have possibly 50 form controls spread over 5 tabs so I don't want to hardcode the information on the php file. I could co-opt an idea from HTML5 and...
I am having a number of problems trying to map entities using Fluent NHibernate. I have three entities, like this: public class Product { public virtual Guid Id { get; set; } public virtual Category Category { get; set; } public virtual Seller Seller { get; set; } } public class Seller { public virtual Guid Id { get; s...
Hey all. Quick question on Fluent syntax. I had thought I had this down, but I'm getting a weird failure. Basically, I have a hierarchical kind of structure that I'm trying to persist, and it all seems to work, except when I do an actual integration test w/ the db. I have a Node object which has a Parent property, which is another Nod...
I need to make an outer join query that retrieves all of the definitions and any properties they have associated with them that are associated with a certain company. I have two Hibernate models objects: class PropertyDefinition { @Id private Long id; @Column private String name; @OneToMany(mappedBy = "propert...