Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 897809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:56:31+00:00 2026-05-15T14:56:31+00:00

i’m newbie developer…. i really need help at now… i just get started with

  • 0

i’m newbie developer….

i really need help at now…
i just get started with Nhibernate thing at .Net…
when i learn Inheritance and try it…it makes me confusing…why i get error like this :

Initializing[AP.Core.Domain.AccountPayable.APInvoice#API03/04/2010/001]-Could not initialize proxy – no Session.

this is my xml :

  <class xmlns="urn:nhibernate-mapping-2.2" mutable="true" name="AP.Core.Domain.AccountPayable.APAdjustment, AP.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="APAdjustment">
    <id name="AdjustmentNumber" type="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <column name="AdjustmentNumber" length="17" />
      <generator class="assigned" />
    </id>
    <property name="Amount" type="System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <column name="Amount" />
    </property>
    <property name="TransactionDate" type="System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <column name="TransactionDate" />
    </property>
    <many-to-one class="AP.Core.Domain.AccountPayable.APInvoice, AP.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" lazy="proxy" name="PurchaseInvoice">
      <column name="PurchaseInvoice_id" not-null="true" />
    </many-to-one>
    <joined-subclass name="AP.Core.Domain.AccountPayable.APCreditAdjustment, AP.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" lazy="true" table="APCreditAdjustment">
      <key>
        <column name="APAdjustment_id"  />
      </key>
    </joined-subclass>
  </class>
</hibernate-mapping>

and this is inheritance Class :

Parent Class –>

public class APAdjustment
        {
        #region :FIELD
        private string adjustmentNumber;
        private decimal amount;
        private DateTime transactionDate;
        private APInvoice purchaseInvoice;

Child Class –>

public class APCreditAdjustment : APAdjustment {

  public APCreditAdjustment(){

and this my Data access :

public IList<APAdjustment> GetByNameAll()
{
   ICriteria criteria = Nhibernatesession.CreateCriteria(typeof(APAdjustment));
   return criteria.List<APAdjustment>() ;
}

My Problem is :

  1. when i load data with gridview …it
    works…but i change the property to
    autogenerate=”true” …i missing
    “PurchaseInvoice” field…and i
    change to bind manually,and it
    works..when i edit that gridview
    …i get this
    error…

    Initializing[AP.Core.Domain.AccountPayable.APInvoice#API03/04/2010/001]-Could
    not initialize proxy – no Session

  2. so then i change my xml
    …lazy=”no-proxy” …it still
    work…but when edit again …i get
    error again ..and i do “Comment out
    the selected lines” to my
    association “Many-to-one”…i really
    works it..but that’s not i want…

CAN ANYBODY HELP ME…??Plizz…:(

Note : I almost forget it ,i use fluent hibernate to generate to database.From fluent Hibernate ..i put *.xml file …so i’m work to xml NHibernate…not fluent hibernate thing…:)

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:56:32+00:00Added an answer on May 15, 2026 at 2:56 pm

    In all of your associations, put this at your code:

    not-found=”ignore”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I need to clean up various Word 'smart' characters in user input, including but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.