java - How to get session id in spring-data-rest -


i newbie spring-data-rest. here developing shopping cart application using spring-data-rest. need session id in response post request made in postman client. so, when post cart details postman client in response getting empty page indicated success. instead of need session id. how can session id cart, can make direct call cart using session id in response?

here cart bean class:

@entity @table(name="cart", catalog="db_sports" ) // define named queries here @namedqueries ( { @namedquery ( name="cart.countall", query="select count(x) cart x" ) } )  @component @scope(proxymode=scopedproxymode.target_class, value="session") public class cart implements serializable {     private static final long serialversionuid = 1l;     @id     @generatedvalue(strategy=generationtype.auto)     @column(name="id", nullable=false)     private integer    id           ;     private date       date         ;     //----------------------------------------------------------------------    // entity links ( relationship )    //---------------------------------------------------------------------- @manytoone @joincolumn(name="tenant_id", referencedcolumnname="id") private tenant tenant      ;  @onetomany(mappedby="cart", targetentity=cartitem.class) private list<cartitem> listofcartitem;  @manytoone @joincolumn(name="user_phoneno", referencedcolumnname="phoneno") private user user        ;  @onetomany(mappedby="cart", targetentity=invoice.class) private list<invoice> listofinvoice;  //---------------------------------------------------------------------- // constructor(s) //---------------------------------------------------------------------- public cart() {     super(); }   //to string method    //setters , getters     } 

can me how can session id cart?

thanks in advance.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -