I'm using the latest version of Hibernate with Java.
I've got three enum types that are being used as property names, each of the three property names go with different objects. There are different sets of property names for each object.
Each property name is stored in a map with it's respective property value object, the property value ...
A client and I were brainstorming a way to generate usernames from numeric user ids (generated by the database). The key requirement is that usernames are unique.
The most obvious solution would be just set the username equal to the user id. But an important requirement is that the usernames are not "obviously sequential"-- so while th...
Hope someone can advise,
I would like to be able to use google map API to find all Zip codes/cities with x Miles of a point.
Has anyone done such a thing with google map or maybe some other type of service.
Would love to know if so how you have achieved it !
Thank you if you can advise.
...
source XSD structure:
documents (min occurs 1, max occurs 1)
document (min occurs 1, max occurs unbounded)
filename (min occurs 1, max occurs 1)
destination XSD structure:
documents (min occurs 1, max occurs 1)
filename (min occurs 1, max occurs unbounded)
How can this be done in the BizTalk mapper ?
(edit)...
I need something like Google-maps, usable on a commercial project. Can I use GoogleMaps? What if they should change the terms of service? Would I be better with somethin elike Open Street Map?
I need full coverage for North America, but also for Europe and Asia.
Which might be best? Thanks
...
I'm new to Entity Framework and am trying to figure things out. I have a database created that's not very complicated. There's about 7 tables and 3 of those are mapping tables to associate one table record w/ another. The example I'm using here is this:
Table User
UserId
UserName
Table Role
RoleId
RoleName
Table: UserRole
UserI...
Hi,
Can you please give us the mapping for the following xml structure ?
3.14159265358979E0
4.14159265358979E0
5.14159265358979E0
We were not able to find mapping for elements with both Attribute and Value.
Thanks,
Sriram.
...
Does anyone know of a good even paid API for mapping to get GEO stuff.
I am really frustrated with google map giving poor results even though it beats all others.
I have tried so far.
Google
Yahoo
BING
Mapquest
Multimap
Can anyone suggest other good services ?
Hope ya CAN !
...
Hi,
i want to map two classes m:n associated using NHibernate. NH would map a simple m:n association in a link table with foreign key constraints to the entity tables. Now I want to attach more attributes to the association as seen on this example:
(and I want NHibernate to store these attributes in the link table)
This UML diagram s...
I need to animate some vector icons smoothly moving about a 2d map. I have time-lat/lng pairs forming tracks. Down the road I would really like to be able to convey various GIS data like topography and roads on the map along with my smoothly animated icons.
Any suggestions on what to use? I find things like Quantum GIS but it seems g...
It looks like an IValueFormatter takes a value of type object and returns a value of type string, while a ValueResolver<TSource, TDestination> takes a value of any type and returns a value of any type. So, it's more flexible. There is also the matter that, with a ValueResolver, you never need to cast the source to a particular type--you ...
I want to map DbConnection to an un-opened SqlConnection using Ninject. This is what I've done:
string constr = @"Server=.\SQLEXPRESS; Trusted_Connection=True; Database=TestDB";
Bind<DbConnection>().To<SqlConnection>()
.Using<OnePerRequestBehavior>()
.WithConstructorArgument("connectionString", constr);
However, when trying t...
This is based on my assumption that taking an object of type:
public class Fruit : IBasicFruit, IFruitDetails
{
// IBasicFruit implementation
public string name { get; set; }
public string color { get; set; }
// IFruitDetails implementation
public string scientific_name { get; set; }
public bool often_mistaken_f...
Mapper.CreateMap<A, B>()
.ForMember(dest => dest.defs, opt => opt.MapFrom(origin => origin.abc));
where defs is array of Def (Def[])
how to map?
...
Hi,
In my current project, Workflows have comments. Please have a look at the following code.
[CompositeId]
[KeyProperty(1, Column = "datum", Name = "Date", TypeType = typeof(DateTime))]
[KeyManyToOne(1, Column = "workflow_id", Name = "Workflow", ClassType = typeof(Workflow))]
public virtual IWorkflow Workflow { get; set; }
...
Also see the updates at the end of the question...
Given the following situation:
[Flags]
enum SourceEnum
{
SNone = 0x00,
SA = 0x01,
SB = 0x02,
SC = 0x04,
SD = 0x08,
SAB = SA | SB,
SALL = -1,
}
[Flags]
enum DestEnum
{
DNone = 0x00,
DA = 0x01,
DB = 0x02,
DC = 0x04,
DALL = 0xFF,
}
I...
As the title says...
I found this solution http://stackoverflow.com/questions/1526813/automapper-setting-destination-string-to-null-actually-makes-it-string-empty
but It uses the Initialize method so all the mappings behavior would change along the app : O
And I just need do it for a specific mapping.
Thanks in advance.
...
Suppose I have the following classes
public class Baz {
private List<Foo> foos = new ArrayList<Foo>();
}
public class Foo {
private String string;
}
public class Target {
private List<String> fooStrings = new ArrayList<String>();
}
Is there any mapping I can use to, given a Baz, map it to the target class and get a list of the...
I've found a number of posts about this but none seem to help me directly. Also there seems to be confusion about solutions working or not working during different stages of FluentNHibernate's development.
I have the following classes:
public class MappedClass
{
...
}
public enum MyEnum
{
One,
Two
}
public class Foo
{
...
I have a one-to-many mapping that works in sql lite, but then blows up in
Oracle. If I make a slight change, it will work in Oracle, but not in
SQLITE.
Here's my mappings:
This works in SQL Lite
<many-to-one class="NHibernate.Spike.Data.Entities.ClientRecord,
NHibernate.Spike.Data, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=nul...