This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate.warganegara; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Service; | |
import org.springframework.transaction.annotation.Propagation; | |
import org.springframework.transaction.annotation.Transactional; | |
@Service | |
public class WargaNegaraService { | |
@Autowired |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate.warganegara; | |
import java.util.Date; | |
import jakarta.persistence.CascadeType; | |
import jakarta.persistence.Entity; | |
import jakarta.persistence.Id; | |
import jakarta.persistence.JoinColumn; | |
import jakarta.persistence.OneToOne; | |
import jakarta.persistence.Table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate.warganegara; | |
import java.math.BigDecimal; | |
import java.util.Date; | |
import jakarta.persistence.CascadeType; | |
import jakarta.persistence.Column; | |
import jakarta.persistence.Entity; | |
import jakarta.persistence.Id; | |
import jakarta.persistence.OneToOne; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate; | |
import java.math.BigDecimal; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.ApplicationContext; | |
import com.sufyan97.learn_hibernate.barang.Barang; | |
import com.sufyan97.learn_hibernate.barang.BarangService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate.barang; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Service; | |
import org.springframework.transaction.annotation.Propagation; | |
import org.springframework.transaction.annotation.Transactional; | |
@Service | |
public class BarangService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate.barang; | |
import org.springframework.data.jpa.repository.JpaRepository; | |
import org.springframework.stereotype.Repository; | |
@Repository | |
public interface BarangRepository extends JpaRepository<Barang, Long>{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_hibernate.barang; | |
import java.math.BigDecimal; | |
import jakarta.persistence.Column; | |
import jakarta.persistence.Entity; | |
import jakarta.persistence.GeneratedValue; | |
import jakarta.persistence.GenerationType; | |
import jakarta.persistence.Id; | |
import jakarta.persistence.Table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sufyan97_blog.design_pattern; | |
class ConfigEarly { | |
private static ConfigEarly configEarly = new ConfigEarly(); //terbentuk ketika load time | |
private ConfigEarly() { | |
} | |
public static ConfigEarly getConfigEarly() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sufyan97_blog.design_pattern; | |
class ConfigLazy { | |
private static ConfigLazy configLazy; | |
private ConfigLazy() { | |
} | |
public static ConfigLazy getConfigLazy() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sufyan97.learn_log4j; | |
import org.apache.logging.log4j.Level; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
public class LevelLogCustom { | |
private static Logger log = LogManager.getLogger(LevelLogCustom.class); | |
//custom BAHAYA_TA |
NewerOlder