• Modules
    • By category
    • By name
    • Most popular
    • Most downloaded
    • Repository
  • Register
  • Log in
  • Help
    • Start using Ceylon Herd
    • Publish your first module
    • Module publishing guidelines
    • All about Ceylon
    • Keyboard Shortcuts

    • s Focus search module bar
      ? Open this information panel
      j Move selection down
      k Move selection up
      enter Open current selection
Module info
Name
quintesse / ceylon.interop.persistence
Ceylon Persistence Interop Platform Module
Description

Provides a Ceylonic EntityManager for use with the Java Persistence API. An EntityManager may be instantiated directly, given an instance of [[javax.persistence.EntityManager|javax.persistence::EntityManager]].

value emf = Persistence.createEntityManagerFactory("example");
value em = EntityManger(emf.createEntityManager());

The EntityManager provides all the same operations as javax.persistence.EntityManager, but:

  1. is slightly more typesafe, and
  2. accepts Integer, Float, String, Character, and Boolean, arguments to EntityManager.find, EntityManager.getReference and Query.setParameter.

Note: it's perfectly possible to directly use the javax.persistence.EntityManager from Ceylon, but in that case, it's necessary to explicitly convert arguments to [[java.lang.Long|java.lang::Long]], [[java.lang.Double|java.lang::Double]], [[java.lang.String|java.lang::String]], [[java.lang.Character|java.lang::Character]], or [[java.lang.Boolean|java.lang::Boolean]].

Category SDK

The Ceylon SDK

Last Published Aug 21, 2017
Stats Downloads (JVM): 1286
Downloads (JS): 0
Source downloads: 1157
Module links Home
Code repository
Issue tracker
Imported By
Browse
List of published versions
1.3.3 JVM JVM: 1.2.x, 1.3.x (latest) Published Aug 21, 2017 Browse
View docs
1.3.2 JVM JVM: 1.2.x, 1.3.x (latest) Published Mar 1, 2017 Browse
View docs
1.3.1-1 JVM JVM: 1.2.x, 1.3.x (latest) Published Nov 21, 2016 Browse
View docs
1.3.1 JVM JVM: 1.2.x, 1.3.x (latest) Published Nov 21, 2016 Browse
You must be logged in to comment.

Ceylon Herd v1.24 Copyright 2012-2022 Red Hat. About