fluent-nhibernate | compile safe , automated , convention-based mappings | Object-Relational Mapping library
kandi X-RAY | fluent-nhibernate Summary
kandi X-RAY | fluent-nhibernate Summary
Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. Get your fluent on.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fluent-nhibernate
fluent-nhibernate Key Features
fluent-nhibernate Examples and Code Snippets
Community Discussions
Trending Discussions on fluent-nhibernate
QUESTION
In c# (dotnet core), I can defined an assembly/csproj that
- Contains only POCO (aka POJO) classes.
- Has zero references to any other library.
- Have zero ORM attributes (aka, annotations) on the Poco objects.
Then in another assembly/csproj, I can "fluently" define mappings between the poco and the ORM. (Entity Framework or NHibernate for example).
Example like this: (entity framework core)
...ANSWER
Answered 2020-May-12 at 12:48Yes. The JPA specs states:
The object/relational mapping information can take the form of annotations on the managed persistence classes included in the persistence unit, an orm.xml file contained in the META-INF directory of the root of the persistence unit, one or more XML files on the classpath and referenced from the persistence. xml file, or a combination of these.
Annotations is only an option. All mapping information can be defined in xml files, or a combination of both. In the later case, the mapping information on the xml files overrides the annotations.
For example, this could be a META-INF/orm.xml
file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fluent-nhibernate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page