#7. Saving Image and other type value with hibernate | PRACTICAL SESSION ANNOTATIONS in HINDI

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 92

  • @smishra9691
    @smishra9691 4 ปีที่แล้ว +13

    After seeing your videos, am inspired. When i will get free times definitely i will also share my java knowledge.. sharing is caring thanx dude for making me realise this...

  • @mdajaz7520
    @mdajaz7520 4 ปีที่แล้ว +5

    You are riding high with perfect explanation!
    Thanks a bunch

  • @crazydude4557
    @crazydude4557 ปีที่แล้ว

    One of the best hibernate series beginners must watch and practice

  • @anonym0us__537
    @anonym0us__537 ปีที่แล้ว +12

    If anyone is getting an error that "data too large for imahe column" then use annotation @column(length=1000....) over private byte[] image; to increase its length

    • @kshitijdwivedi1282
      @kshitijdwivedi1282 ปีที่แล้ว

      thanks buddy'

    • @adityarajpateriya3870
      @adityarajpateriya3870 ปีที่แล้ว +5

      better to use
      @Column(columnDefinition = "mediumblob")"
      because by default it is set to tinyblob and its lengths is 225

    • @mohitthakur4670
      @mohitthakur4670 5 หลายเดือนก่อน

      thanks brother

  • @vishalgaikwad7515
    @vishalgaikwad7515 2 ปีที่แล้ว +1

    I Liked 999 which goes to 1k... Thanks, Durgesh for this useful content.

  • @saurabhverma5460
    @saurabhverma5460 2 ปีที่แล้ว

    Bdya tutorial hote hai sir aapke sabi .. heads off to you sir . 🙏🙏🙏🙏🙏

  • @RelaxingMusic-ke8gr
    @RelaxingMusic-ke8gr 2 ปีที่แล้ว +1

    Sir image jo ap ne insert ki ha usy data table main kesy dekhana hai please make a video on this

  • @soumyaranjansahu7079
    @soumyaranjansahu7079 3 ปีที่แล้ว

    tu bohot achaa sikhata h re bhidu :) Tq

  • @SandeepKumar-so2st
    @SandeepKumar-so2st 4 ปีที่แล้ว +1

    You are excellent

  • @Vinaykumar-bx1ql
    @Vinaykumar-bx1ql ปีที่แล้ว

    thank you so much sir..........

  • @aniruddhawankhade4826
    @aniruddhawankhade4826 4 ปีที่แล้ว +1

    good work

  • @atultiwari1547
    @atultiwari1547 4 ปีที่แล้ว +1

    good explanation!

  • @akshayengineer2018
    @akshayengineer2018 3 ปีที่แล้ว

    Awesome Boss ... you are amazing...

  • @Vinu-Arts
    @Vinu-Arts ปีที่แล้ว

    tank you so much sir................

  • @ankushsamanta7318
    @ankushsamanta7318 4 หลายเดือนก่อน +1

    My columns in student_address are not displaying in the order in the database. Any suggestions on how to do that.

  • @varunthareja697
    @varunthareja697 4 ปีที่แล้ว +1

    Great!

  • @relievestress557
    @relievestress557 2 ปีที่แล้ว

    Thank you...

  • @AshishKumar-fw7dk
    @AshishKumar-fw7dk 4 ปีที่แล้ว +2

    Do you have spring boot micro service project?

  • @anonym0us__537
    @anonym0us__537 ปีที่แล้ว

    Why are we creating a constructor but sot passing values to it and creating getters and setter too?

  • @amjadalijoyo2141
    @amjadalijoyo2141 ปีที่แล้ว

    Detailed 💜

  • @sunnykosle8865
    @sunnykosle8865 4 ปีที่แล้ว +1

    Sir sqlyog ke bare me batao or kaise use karte hai

  • @dikshabaranwal1286
    @dikshabaranwal1286 2 ปีที่แล้ว

    Thanks, well explained 🙂👍

    • @proxy5061
      @proxy5061 2 ปีที่แล้ว

      😉hi deeksha

  • @vishalmishra9549
    @vishalmishra9549 4 ปีที่แล้ว +1

    bhai ,can you please create a tutorial on dropwizard also.

  • @siddhantsingh1784
    @siddhantsingh1784 ปีที่แล้ว +2

    why we are creating default constructor when we r not using it and also why using super in it?

    • @ABDULLAH-wx1re
      @ABDULLAH-wx1re 8 หลายเดือนก่อน

      yeah,just creating confusion

  • @iamrussellmahmud
    @iamrussellmahmud ปีที่แล้ว +9

    session.save() is depricated, use session.persist() instead!

  • @riteshmalav2448
    @riteshmalav2448 4 ปีที่แล้ว +1

    hi upload spring framework video

  • @dipannita7436
    @dipannita7436 2 ปีที่แล้ว

    great

  • @chaddaprashant
    @chaddaprashant 3 ปีที่แล้ว

    nice tutorial

  • @rahul-java-dev
    @rahul-java-dev 4 ปีที่แล้ว

    Thank you...bahut acchi video hai.

    • @maneshkumarhjmalhi9147
      @maneshkumarhjmalhi9147 4 ปีที่แล้ว +2

      can you help I have one error

    • @rahul-java-dev
      @rahul-java-dev 4 ปีที่แล้ว +1

      @@maneshkumarhjmalhi9147 Sure brother...Puri kosis krunga

    • @maneshkumarhjmalhi9147
      @maneshkumarhjmalhi9147 4 ปีที่แล้ว

      @@rahul-java-dev Jb man 2 model class use kar rha hn to error arhe ha "could not load the requested class ....
      Jb ek modle use ki tb sahe chal rhe the
      " if you any social contacl please come at there

    • @rahul-java-dev
      @rahul-java-dev 4 ปีที่แล้ว

      @@maneshkumarhjmalhi9147 insta me aa jao bhai ignite246 username h and Rahul name h

  • @pritichoudhary8674
    @pritichoudhary8674 4 ปีที่แล้ว +1

    sir....
    netbeans m ni hogi ye coding

  • @anokhilalpanchal6282
    @anokhilalpanchal6282 2 ปีที่แล้ว

    thaks sir

  • @bkkothari2255
    @bkkothari2255 4 ปีที่แล้ว

    Sir video ko bhi database dal sakte hai??

  • @nehakumar6831
    @nehakumar6831 ปีที่แล้ว

    Sir, save to hgyi h leking agar same image UI me display karni hogi via img tag toh kaise kiya ja sakta hain?

  • @saloniejindal5747
    @saloniejindal5747 4 ปีที่แล้ว

    best!

  • @itsme-cr6tf
    @itsme-cr6tf 8 หลายเดือนก่อน

    Teaching ❤ but keyboard sound = 💣💣💣

  • @tabishquadri
    @tabishquadri 2 ปีที่แล้ว

    I'm using Postgres, its showing 16455 in image column, how to view image? I followed all exact same coding.

  • @contentsbydhirajkumarjaiswal
    @contentsbydhirajkumarjaiswal 3 ปีที่แล้ว +4

    Somehow : @GeneratedValue(strategy=GenerationType.IDENTITY) is not working for me But when I tried with @GeneratedValue(strategy=GenerationType.SEQUENCE) it worked. Reason I am still searching !!!

  • @rohitsachdeva4624
    @rohitsachdeva4624 2 ปีที่แล้ว

    @durgesh : what if i do not specify auto increment in my db. but i annotate my field with generated value = starategy .Identity .??

  • @kritiarora29
    @kritiarora29 3 หลายเดือนก่อน

    How to connect NetBeans and my sql, it's not showing table created in mysql

  • @shivkashiyan755
    @shivkashiyan755 ปีที่แล้ว

    sir ek issue hai sub kuch shi se chlra hai but mere database me table auto create nhi hori hai na hi uski query show hori hai mujhe console me mujhe manually jake table bnani pdri hai update to hori hai but create nhi hori

  • @visualart8609
    @visualart8609 3 ปีที่แล้ว

    its showing error "Incorrect string value: '\x89PNG\x0D\x0A...' for column 'image' at row 1" while the same code for uploading the picture...please help me.

  • @adityarajpateriya3870
    @adityarajpateriya3870 ปีที่แล้ว

    hwo to convert that byte array into object ??

  • @kingkhan-jp9zv
    @kingkhan-jp9zv 3 ปีที่แล้ว

    nice

  • @ikshitmagoon8235
    @ikshitmagoon8235 4 ปีที่แล้ว +2

    sir data too long for column 'image; aa rha haii help

  • @shahidanwar6254
    @shahidanwar6254 3 ปีที่แล้ว

    Could not execute JDBC batch update.....this is the exception I am facing...solution?

  • @ayushjain7555
    @ayushjain7555 2 ปีที่แล้ว

    Sir, In this we are using getter and setter then why do we need constructor?

    • @proxy5061
      @proxy5061 2 ปีที่แล้ว

      yes bro ! its not required! but empty constructer is required! but its always good practise to write because during testing , setting data from PSVM ! it will be helpfull! bro u are doing this in 2022?? am also doing , shud i continue?

  • @akashmohapatra1008
    @akashmohapatra1008 3 ปีที่แล้ว

    Hello Durgesh,
    I have a doubt when to use primitive datatypes vs Wrapper class while declaring variables in pojo class?

    • @ashishkumarnath1259
      @ashishkumarnath1259 2 ปีที่แล้ว

      I'm not sure though but I think while using Wrapper class you get access to some methods which would be helpful, which is not possible in primitive datatypes.

    • @proxy5061
      @proxy5061 2 ปีที่แล้ว

      both are same ! u get some good methods with Wrappers! ! although java 5 > it uses auto/unbox . s

  • @RAHULKUMAR-fn1fj
    @RAHULKUMAR-fn1fj 4 ปีที่แล้ว

    sir jb mai bi mysql open kr rha hu binary image dekhne ke liye wo band ho ja rha hai or sql workbench pe bi show nhi ho rha hai or baki App.java successfully run ho gayi

  • @lovetyagi5266
    @lovetyagi5266 4 ปีที่แล้ว +1

    🙏🙏🙏

  • @ranjitdesai3926
    @ranjitdesai3926 3 ปีที่แล้ว

    Actually these videos should be recieving 1 million views. Its a shame people click the dislike button.

  • @Ashishsingh-oo2ve
    @Ashishsingh-oo2ve 2 ปีที่แล้ว

    Sir sub sahi chal raha hai but image nhi a rahi I am using SQL workbench

  • @priyaranjanbharti58
    @priyaranjanbharti58 4 ปีที่แล้ว +1

    Sir phele basic sy bataye then Advance toh bahot maza aayega padhne mai

  • @The_Positive__Life
    @The_Positive__Life 4 ปีที่แล้ว

    👌

  • @adityarathor5300
    @adityarathor5300 ปีที่แล้ว +1

    In above video, image is not inserting in my database. Facing exception like ERROR: Data truncation: Data too long for column 'image' at row 1 .. Can anyone having an idea to resolve this.

    • @hardikkaushik8972
      @hardikkaushik8972 ปีที่แล้ว

      same error did you find any solution

    • @adityarathor5300
      @adityarathor5300 ปีที่แล้ว

      @@hardikkaushik8972 yes...
      Recheck your dependency in pom.xml
      Because of this dependency this issue happens.. once you change issue resoved

    • @zakirdeshmukh9916
      @zakirdeshmukh9916 ปีที่แล้ว

      ​@@adityarathor5300what to check in?

    • @harithati501
      @harithati501 ปีที่แล้ว

      @Lob
      @Column(columnDefinition = "LONGBLOB")
      private byte[] image;
      use this it will work

  • @manishankar1435
    @manishankar1435 3 ปีที่แล้ว

    how to select user any image

  • @anjaliadhikari6692
    @anjaliadhikari6692 ปีที่แล้ว

    I have Exception in thread main ....unable to create requested service ☹️☹️☹️ can anybody fix

  • @pranavverma37
    @pranavverma37 ปีที่แล้ว

    hi database me hum image save nahi karwate hai it is not a good apprach

  • @Koriruttii
    @Koriruttii 4 ปีที่แล้ว +1

    I am getting a error myhiber. address does not exist!!

    • @priyankakumbhar2562
      @priyankakumbhar2562 3 ปีที่แล้ว +1

      hi... i am also getting same error. can you please help me

    • @KRISHNAYADAV-wp2ud
      @KRISHNAYADAV-wp2ud 3 ปีที่แล้ว

      Send the screen shot I'll help you

    • @sahitidasara9425
      @sahitidasara9425 2 ปีที่แล้ว +1

      In config file, make sure dialect matches with your Mysql version. In my case, MySQL version is 8.x, so dialect is org.hibernate.dialect.MySQL8Dialect

  • @harshuzade954
    @harshuzade954 ปีที่แล้ว

    😍😍😍

  • @priyaranjanbharti58
    @priyaranjanbharti58 4 ปีที่แล้ว +1

    Because agar basic mai problem ho jate h toh phir advance mai maza nahi aata

  • @sainishubham08
    @sainishubham08 2 ปีที่แล้ว

    Exception in thread "main" org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property: com.tut.Address.addedDate
    ????????????????????????????????????????????????????????

    • @pranalivekhande4450
      @pranalivekhande4450 ปีที่แล้ว

      Kyuki tumne galtise import karte time sql import kiya tha util nahi...got it? In adress or app.java class

    • @simransingh9558
      @simransingh9558 ปีที่แล้ว

      ​@@pranalivekhande4450thanks 😊

  • @rakshitsharma8143
    @rakshitsharma8143 2 ปีที่แล้ว

    you could've provided the source code for free sir... c'mon :( . Can you do that now please.

  • @asmitbajaj3155
    @asmitbajaj3155 ปีที่แล้ว

    org.hibernate.tool.schema.spi.CommandAcceptanceException this error comes when i run code

  • @dProfessor_
    @dProfessor_ ปีที่แล้ว

    Thanks a lot sir