nhibernate-mapping Questions
1
Solved
I'm trying to replace at TimeBlock object on a ProgramItem and then delete the old TimeBlock object. It's the delete part that gives me problems.
I have some 'relative' simple nHibernate problems d...
Bohannan asked 10/1, 2015 at 9:43
1
Solved
I've following mapping for two tables having a Many-to-Many relationship between them. How do I delete an entry from the mapping table, which is 'TB_EMAIL_GRUPO_ARQUIVO' in my case? I just need to ...
Dante asked 22/12, 2014 at 21:31
3
Solved
We have a SQL Server table with varchar and nvarchar max columns like this:
CREATE TABLE [dbo].[MyTable](
:
[MyBigUnicodeColumn] [nvarchar](max) NULL,
[MyBigAnsiColumn] [varchar](max) NULL,
:
...
Limbourg asked 24/8, 2012 at 8:44
1
Solved
I have a parent child relationship where I want to return only one parent and load all the children. I am using criteria because it is a dynamic query.
var messageQueueId = this.GetPropertyName<...
Eydie asked 7/11, 2014 at 16:54
4
Unfortunately the code below does not work. Image is always retrieved!
@Entity
public Car implements Serializable {
...
@Basic(fetch = FetchType.LAZY) //Neither with @Lob
private byte[] image;
...
Moral asked 26/10, 2011 at 11:58
3
Solved
I have a mapping along the lines of this.
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Model.Entities" schema="etl" assembly="Model" default-lazy="false">
<class name...
Thompkins asked 30/3, 2009 at 3:37
1
Solved
I have this entity relationship.
public abstract class UserGroup
{
public virtual int UserGroupId { get; set; }
public virtual int GroupType { get; set; }
public virtual string GroupName { get;...
Codpiece asked 15/10, 2014 at 0:1
1
Solved
I founded that NHibernate have several builtin Types that are not present in C#, but are present in some of SGBD.
Now I have following:
public class TimeSlot : EntityBase
{
public virtual NHibe...
Isopleth asked 8/10, 2014 at 8:1
6
How can I get fluent nhibernate to create a varbinary field in a sql server 2005 table that uses a field size of varbinary(max)? At the moment I always get a default of varbinary(8000), which isn't...
Aboral asked 8/7, 2009 at 13:59
1
My question is, is there a possible Fluent NHibernate mapping for Parent and Child objects that does not require the Child object to have a Parent object property? I haven't figured out how to map ...
Wellread asked 13/7, 2013 at 2:21
3
Solved
I'm just getting up to speed with NHibernate 3.2 and its "mapping by code" feature, and migrating our Fluent mapping over to it.
Is there an equivalent of the fluent "ReadOnly();" function, to make...
Kissee asked 6/10, 2011 at 8:48
1
Solved
I'm getting an intermittant problem with NHibernate where it generates a query for an entity, but replaces one of the columns with a column from completely different (and unrelated) entity.
It on...
Kosygin asked 27/1, 2014 at 13:58
5
Solved
I'm getting the error
Illegal access to loading collection
when I'm trying to get a list of variants belonging to a certain product. The NHibernate mapping is as below
<list name="Variants...
Phototube asked 22/3, 2010 at 15:19
2
Solved
I want to map a class that result in a left outer join and not in an innner join.
My composite user entity is made by one table ("aspnet_users") and an some optional properties in a second table (...
Bloodstone asked 30/8, 2009 at 16:3
3
Solved
I have the following 2 classes:
Advert
public virtual int Id { get; set;
public virtual IList<AdvertImage> AdvertImages { get; set; }
AdvertImage
public virtual int Id { get; set; }
pu...
Hexa asked 1/6, 2012 at 16:12
2
Solved
I am trying to switch a table from being a many-to-one mapping to being many-to-many with an intermediate mapping table. However, when I switched it over and tried to do a query on it with NHiberna...
Rocky asked 22/12, 2010 at 18:13
2
Solved
Once I've mapped my domain in NHibernate, how can I reverse lookup those mappings somewhere else in my code?
Example:
The entity Pony is mapped to a table named "AAZF1203" for some reason. (Stupi...
Rodrickrodrigez asked 11/3, 2010 at 23:55
1
Solved
I'm new in Hibernate and facing the problem:
@Transactional(readOnly=true)
@Override
public List<User> fetchListUsers() {
return sessionFactory.getCurrentSession().createQuery("select u fr...
Cyst asked 28/9, 2013 at 16:28
3
Solved
I am pulling my hair out here trying to figure out how to map the UsersRoles table listed below. I don't look good bald so please help :)
//Here is the Entity
public class UsersRole
{
public U...
Ascites asked 1/8, 2012 at 15:55
1
Solved
Map Class
public class cAdministratorMap : ClassMap<cAdministrator>
{
public cAdministratorMap()
{
Table("Administrators");
CompositeId<cAdministratorsKey>(c => c.Key)
.KeyPr...
Endocardial asked 8/8, 2013 at 12:10
1
Solved
I'm having some issues with a query of a table that includes a space in it's name
If i write a sql-query it works fine, ie SELECT * FROM [product groups], but when using NHibernate CreateQuery ev...
Celesta asked 29/6, 2013 at 21:50
1
Solved
I have two Date search field namely from and to. I have to retrieve records from the user table whose startDate lies between the from and to dates entered in the search fields and if the from and t...
Chon asked 21/6, 2013 at 11:15
1
Solved
I have a application that uses C# and NHibernate and it will support SQL Server 2008, SQL Server 2012 and Oracle. I have been using fluent nhibernate to map my entities and I have some questions ab...
Vitality asked 20/6, 2013 at 12:27
3
Solved
I understand that in NHibernate, using mapping by code, I can specify the precision and scale of a decimal property like so:
Property(
x => x.Dollars,
m =>
{
m.Precision(9);
m.Scale(6);...
Orlon asked 11/4, 2013 at 12:10
1
I am working with a brownfield database and am trying to configure a subclass map which joins to its subclasses with a column other than that of the specified id. The login table has a primary key ...
Overstay asked 3/10, 2012 at 22:44
© 2022 - 2024 — McMap. All rights reserved.