Is possible use java [spring cloud] with Haxe?

Is it possible to use java [spring cloud] with Haxe?

it seems spring cloud has lot’s of marco function that haxe is not easy to write.

It’s not really clear what you’re talking about… And since when does Java have macros? :slight_smile:

I mean somthing like

@Table(name = "springboot_role")

here is an example.

package com.ekeyfund.springcloud.entity;
import javax.persistence.*;
 * Role Entity
@Table(name = "springboot_role")
public class Role  implements Serializable{
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "role_id")
    private Long id;
    @Column(name = "role_name")
    private String name;
    public Long getId() {
        return id;
    public void setId(Long id) { = id;
    public String getName() {
        return name;
    public void setName(String name) { = name;
    public String toString() {
        return new org.apache.commons.lang3.builder.ToStringBuilder(this)
                .append("id", id)
                .append("name", name)

it looks like @:strict might do it (Built-in Compiler Metadata - Haxe - The Cross-platform Toolkit), however, i have no idea if that would work in the jvm target (rather than the hxJava target)


It’s a java annotation. If I am not mistaken it doesn’t work on methods only on haxe classes:

class SomeClass{...}

It should work on methods as well.