Spring/Hibernate Entity Management Web Interface/UI

后端 未结 5 1976
北海茫月
北海茫月 2021-02-09 10:31

We have a server application that exposes a certain model, and set of services built on that model, to a particular client UI through a number of protocols. This is the kind of

相关标签:
5条回答
  • 2021-02-09 11:02

    I'd try Grails to do this. It's built for fast development of CRUD web applications. It's based on Groovy, Spring, and Hibernate.

    0 讨论(0)
  • 2021-02-09 11:05

    Naked Objects, OpenXava and Spring Roo, all can do what you are looking for.

    0 讨论(0)
  • 2021-02-09 11:21

    Looks like LightAdmin pluggable administration interface for Spring/JPA based applications would be a good choice for you. It has a built-in Java DSL for interface configuration and the only thing you need to do is to download a jar or declare Maven dependency, enable your domain administration through web.xml (point to package containing your JPA entities) and create @Administration configuration for the entity.

    Here is an example of configuration:

    @Administration( User.class )
    public class UserAdministration {
    
      public static EntityMetadata configuration(EntityMetadataBuilder configurationBuilder ) {
        return configurationBuilder.nameField( "firstname" ).build();
      }
    
      public static ScreenContext screenContext( ScreenContextBuilder screenContextBuilder ) {
        return screenContextBuilder
               .screenName( "Users Administration" )
               .menuName( "Users" ).build();
      }
    
      public static FieldSet listView( final FieldSetBuilder fragmentBuilder ) {
        return fragmentBuilder
               .field( "firstname" ).caption( "First Name" )
               .field( "lastname" ).caption( "Last Name" ).build();
      }
    
    0 讨论(0)
  • 2021-02-09 11:21

    To elaborate on @duffymo , Grails has a bootstrapping mechanism where you can insert the reference data you need on application startup. You can write the code such that you can detect if the reference data in bootstrap and only insert if you need it; its very hands off once its done.

    Its particularly elegant in the code can detect the environment in which it is running on do different things in different environments, if you need to.

    Finally, if you use Grail's scaffolding machinery, it will generate default Crud screens for you. You can have CRUD operations up in running in literally minutes.

    0 讨论(0)
  • 2021-02-09 11:25

    For CRUD screens generation you can use Telosys Tools.

    It allows to generate web app CRUD screens from an existing database model with customizable Velocity templates : https://sites.google.com/site/telosystools/

    See the tutorials : https://sites.google.com/site/telosystutorial/ (you can use Spring MVC + JPA for example)

    0 讨论(0)
提交回复
热议问题