Group: Ceylon Interop
1. Ceylon / Java Interoperability Platform Module28 usages
ceylon.interop » java
A set of adaptors for types belonging to the Java language
or Java SDK. Includes:
- a set of functions for instantiating Java array types
given a stream of values, for example,
[[createJavaIntArray]], [[createJavaFloatArray]],
[[createJavaByteArray]], [[createJavaBooleanArray]],
[[createJavaObjectArray]], and
[[createJavaStringArray]],
- a set of functions for converting between Ceylon's
[[Array]] class and Java array types, for example,
[[javaIntArray]], [[javaFloatArray]], ...
Last Release on Feb 13, 2021
2. Ceylon Persistence Interop Platform Module
ceylon.interop » persistence
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]], ...
Last Release on Feb 13, 2021
3. Ceylon Spring Interop Platform Module
ceylon.interop » spring
Provides [[CeylonRepository]] for use with Spring Data.
Your repository should satisfy `CeylonRepository`, for
example:
shared interface OrgRepository
satisfies CeylonRepository<Org,Integer> {}
Then, enable [[CeylonRepositoryImpl]] by annotating your
`configuration` or `springBootApplication` class like
this:
springBootApplication
enableJpaRepositories {
repositoryBaseClass
= `class CeylonRepositoryImpl`;
}
shared class MySpringApplication() {}
Last Release on Feb 13, 2021