Liferay Service Builder 6.2: Many to one relationships

前端 未结 2 1904
难免孤独
难免孤独 2020-12-17 22:41

I want to create a one to many relationships and I\'ve used the following service.xml:



        
2条回答
  •  粉色の甜心
    2020-12-17 23:16

    Liferay in all its version have specified documentation, that helps to move from top to bottom approach.

    Please refer this first:

    https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/define-your-object-relational-map-liferay-portal-6-2-dev-guide-04-en

    For spontaneous add following code

    
        
        
    
    
    
        
        
    
        
            
        
    
        
            
        
    
    

    Run build-service and on successful execution you will see the getter setter methods.

提交回复
热议问题