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

@Entity
@Table(name = "springboot_role")

here is an example.

package com.ekeyfund.springcloud.entity;
 
import javax.persistence.*;
import java.io.Serializable;
 
/**
 * Role Entity
 *
 * 
 * 
 */
@Entity
@Table(name = "springboot_role")
public class Role  implements Serializable{
 
 
    @Id
    @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) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    @Override
    public String toString() {
        return new org.apache.commons.lang3.builder.ToStringBuilder(this)
                .append("id", id)
                .append("name", name)
                .toString();
    }
}

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)

Cheers,
Ian

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

@:strict(fullAnnotationPath.SomeAnnotation)
class SomeClass{...}

It should work on methods as well.