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 6740031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:33:28+00:00 2026-05-26T11:33:28+00:00

In my program, i need get a exec a store procedure to decide to

  • 0

In my program, i need get a exec a store procedure to decide to get a object from which table, so i need config a stored procedure in my entity nhibernate config file, the config file like below:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
    <class name="Entity.ACC.User, Entity" table="ACC_User" lazy="false">
        <id name="Id" column="Id" type="Int32" unsaved-value="0" >
            <generator class="increment" />
        </id>
        <property name="Code" column="Code" type="String" length="50" />    
        <property name="Password" column="Password" type="String" length="50" />    
        <property name="FirstName" column="FirstName" type="String" length="50" />  
        <property name="LastName" column="LastName" type="String" length="50" />    
        <property name="Type" column="Type" type="Int16"  />    
        <property name="Email" column="Email" type="String" length="50" />  
        <property name="TelPhone" column="TelPhone" type="String" length="50" />    
        <property name="MobilePhone" column="MobilePhone" type="String" length="50" />  
        <property name="Language" column="Language" type="String" length="50" />    
        <property name="IsActive" column="IsActive" type="Boolean"  />  
        <property name="AccountExpired" column="AccountExpired" type="Boolean"  />  
        <property name="AccountLocked" column="AccountLocked" type="Boolean"  />    
        <property name="PasswordExpired" column="PasswordExpired" type="Boolean"  />    
        <property name="CreateUserId" column="CreateUser" type="Int32" update="false"  />   
        <property name="CreateUserName" column="CreateUserNm" type="String" length="100" update="false" />  
        <property name="CreateDate" column="CreateDate" type="DateTime" update="false"  />  
        <property name="LastModifyUserId" column="LastModifyUser" type="Int32"  />  
        <property name="LastModifyUserName" column="LastModifyUserNm" type="String" length="100" /> 
        <property name="LastModifyDate" column="LastModifyDate" type="DateTime"  />
    <sql-insert>
      exec USP_User_Insert ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
    </sql-insert>
    <sql-update>
      exec USP_User_Update ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
    </sql-update>
    <sql-delete>
      exec USP_User_Delete ?
    </sql-delete>
  </class>
  <sql-query name="User_Select">
    <return class="Entity.ACC,Entity.ACC.User"/>
    exec USP_User_Select ?
  </sql-query>
</hibernate-mapping>

after i added this query SP in the config file

exec USP_User_Select ?

the program can’t run and will throw exception as:

unknown class Entity.ACC, Entity.ACC.User

what should i do let the SP work.

many thanks.

  • 1 1 Answer
  • 0 Views
  • 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-26T11:33:28+00:00Added an answer on May 26, 2026 at 11:33 am

    Try changing

    return class=”Entity.ACC,Entity.ACC.User”
    line into
    return class=”Entity.ACC.User, Entity”

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

Sidebar

Related Questions

How can I get Google search results from inside a program? I need to
I'm making a program in which I need to get the time in milliseconds.
I am writing a Linux CLI program. I need to get a password from
I'm making a C program where I need to get the directory that the
I need to get the path to the native (rather than the WOW) program
I need to get it as a string to use elsewhere in the program,
Why doesn't func3 get executed in the program below? After func1, func2 doesn't need
I need to compile and run a c++ program from java. I am using
I need to execute a command from a program. The command line is ok,
I need to get the color of some pixels on the screen or from

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.