mraible / idea-live-templates

My IntelliJ Live Templates
Apache License 2.0
280 stars 85 forks source link

You may want to change to jakarta instead of javax #1

Open vphilipnyc opened 1 year ago

vphilipnyc commented 1 year ago

Shows up in the live templates

mraible commented 1 year ago

Can you please provide an example? It's likely that any created before the Spring Boot 3 release will use javax.

I mostly created these for demos and screencasts. I'd be happy to update ones that I'm using in future demos.

vphilipnyc commented 1 year ago

Just looking at the readme

vphilipnyc commented 1 year ago

For example

@lombok.Data
@lombok.AllArgsConstructor
@lombok.NoArgsConstructor
@javax.persistence.Entity
class $name$ {

    public $name$(java.lang.String name) {
        this.name = name;
    }

    @javax.persistence.Id
    @javax.persistence.GeneratedValue
    private java.lang.Long id;

    private java.lang.String name;
}